I want to write a code for Fano lineshape fit.

조회 수: 30 (최근 30일)
Arjun Upadhyay
Arjun Upadhyay 2020년 7월 17일
댓글: Arjun Upadhyay 2020년 7월 21일
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.
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
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?
Arjun Upadhyay
Arjun Upadhyay 2020년 7월 21일
Hi, wavelength( energy) is the independent variable and Reflectivity is dependent. The fitting function is mentioned above as Fano formula and also given in attached pdf under eq 2.28.

댓글을 달려면 로그인하십시오.

답변 (1개)

Alan Stevens
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.

카테고리

Help CenterFile 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!

Translated by