Simple parameters fit for rotated 2D gaussian plot

A small demo to fit 2D gaussian data - No Toolbox required

You are now following this Submission

A small demo how to use some matlab code to obtain the equation parameters of a rotated 2D gaussian curve.
No need for any toolbox (for guys like me) - the output may not be as accurate with more advanced codes available in the Curve Fitting /Optimization Tbx (or Fex submissions using them)
Created with R2020b
version : 1.3
Version 1.3 is simpler, faster and does not require anymore tricontour.m and getContourLineCoordinates.m
date : 2023/12/22
Credits :
we need some functions from the File Exchange forum (Fex) to make it work
Functions needed for V1.3 and above
Other Functions needed only for V1.2 and below (obsolete) :

Cite As

Mathieu NOE (2026). Simple parameters fit for rotated 2D gaussian plot (https://in.mathworks.com/matlabcentral/fileexchange/156667-simple-parameters-fit-for-rotated-2d-gaussian-plot), MATLAB Central File Exchange. Retrieved .

Tags

Add Tags

Add the first tag.

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.3

Simplified and faster code (no need anymore for tricontour.m and getContourLineCoordinates.m)

1.2

Version 1.2 is now a function + demo file + a modified tricontour function (hence the provided tricontour_mod function in the zip). The difference with V1.1 is simply that tricontour_mod has a few lines commented to avoid an internal call to patch to

1.1

version 1.1 is now a function + demo file

1.0.0