lorentzian fit
版本 1.0.0.0 (2.1 KB) 作者:
Yohanan Sivan
In the attached file example i use "nlinfit", which can fit any kind of function that you want. the
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.
引用格式
Yohanan Sivan (2024). lorentzian fit (https://www.mathworks.com/matlabcentral/fileexchange/13648-lorentzian-fit), MATLAB Central File Exchange. 检索来源 .
MATLAB 版本兼容性
创建方式
R14
兼容任何版本
平台兼容性
Windows macOS Linux类别
在 Help Center 和 MATLAB Answers 中查找有关 Linear Algebra 的更多信息
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0.0 |