[sigma,mu,A]=mygaussfit(x,y)
[sigma,mu,A]=mygaussfit(x,y,h)
this function is doing fit to the function
y=A * exp( -(x-mu)^2 / (2*sigma^2) )
the fitting is been done by a polyfit
the lan of the data.
h is the threshold which is the fraction
from the maximum y height that the data
is been taken from.
h should be a number between 0-1.
if h have not been taken it is set to be 0.2
as default.
Cita come
Yohanan Sivan (2025). gaussian curve fit (https://it.mathworks.com/matlabcentral/fileexchange/11733-gaussian-curve-fit), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Compatibilità della piattaforma
Windows macOS LinuxCategorie
- AI and Statistics > Curve Fitting Toolbox > Linear and Nonlinear Regression >
- Mathematics and Optimization > Optimization Toolbox > Least Squares >
Tag
Riconoscimenti
Ispirato: Fit 1D and 2D gaussian to noisy data, Slant Edge Script
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
| Versione | Pubblicato | Note della release | |
|---|---|---|---|
| 1.0.0.0 |
