I want to write a code for Fano lineshape fit.
28 ビュー (過去 30 日間)
古いコメントを表示
I want to fit Fano resonance with experimental data. The formula for Fano resonance is
R = | p(w) + (A . G. exp(i.o) / [w - w0 + i.(g + G)])| ^2
p(w) is also a complex valued. Plot is b/w R & w. Other values also need to find to get correct fit.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/333168/image.png)
I did some basic liner fit using polyval, polyfit. I have no idea how do I fit this complex expression with multiple variable.
3 件のコメント
Alex Sha
2020 年 7 月 21 日
Hi, just don't understand what the means of "Wavelength Reflectivity" in your Excel data file? which one is independent variable? which one is dependent variable?, what is your fitting function?
回答 (1 件)
Alan Stevens
2020 年 7 月 18 日
Create a function that calculates the sum of squared differences (SS) between your function and the measured values, and then use fminsearch to determine the values of your variables that minimize SS?
Try help fminsearch to see if it will do what you want.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Get Started with Curve Fitting Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!