lorentzian fit
by Yohanan Sivan
13 Jan 2007
(Updated 15 Jan 2007)
In the attached file example i use "nlinfit", which can fit any kind of function that you want. the
|
Watch this File
|
| File Information |
| Description |
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. |
| MATLAB release |
MATLAB 7 (R14)
|
| Other requirements |
the function "nlinfit" |
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
|
Contact us at files@mathworks.com