How to fit a complex function
이전 댓글 표시
I have a complex function that I want to fit to some real data. The function is of the form: Y = -10*imag((A-B)/(A+2*B))
where "imag" means imaginary part of the equation A = a - (b/X)*1i B = c - (d/X)*1i
Y has both imaginary and real parts. But it's the imaginary part that is relevant to my problem. How do I derive the values of a,b,c and d? I have tried to use "lsqcurvefit" but it keeps returning the same starting values I put in-I guessed I must have done wrong. NB: I am new at MATLAB. Thanks
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Nonlinear Least Squares (Curve Fitting)에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!