lorentzian fit
On the gaussian fit i used "polyfit" which gives you en absolut one solution, but have some problems fitting non-linear model.
In the attached file example i use "nlinfit", which can fit any kind of function that you want. the problem is that you need to give here a starting point.
"main.m" include the example code to use nlinfit.
"data.txt" is data (x,y) that needed to be fitted.
"fun.m" is the function to be fitted, in you case it's lorentzian.
Citar como
Yohanan Sivan (2024). lorentzian fit (https://www.mathworks.com/matlabcentral/fileexchange/13648-lorentzian-fit), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
Etiquetas
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
Versión | Publicado | Notas de la versión | |
---|---|---|---|
1.0.0.0 |