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
fit_ellipse.m : fit_ellipse - File Exchange - MATLAB Central (mathworks.com)
disptable.m : disptable - Display matrix with column or row labels - File Exchange - MATLAB Central (mathworks.com)
Other Functions needed only for V1.2 and below (obsolete) :
getContourLineCoordinates.m : getContourLineCoordinates - File Exchange - MATLAB Central (mathworks.com)
인용 양식
Mathieu NOE (2025). Simple parameters fit for rotated 2D gaussian plot (https://www.mathworks.com/matlabcentral/fileexchange/156667-simple-parameters-fit-for-rotated-2d-gaussian-plot), MATLAB Central File Exchange. 검색 날짜: .
MATLAB 릴리스 호환 정보
개발 환경:
R2020b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux태그
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!버전 | 게시됨 | 릴리스 정보 | |
---|---|---|---|
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 |