curve/data fitting with complex data and complex function
이전 댓글 표시
Hi, I have a set of complex data that I want to fit with a complex function using lsqcurvefit or lsqnonlin.
For example:
xdata=[1 2 3]
ydata=[3j 4 5-j]
function F = myfun(x,xdata)
F = x(1)+x(2)*xdata + j*(sin(x(3)*xdata));
How can I perform a least-squares-fitting of the function to the data so that I obtain the real parameters x?
Cheers Stefan
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Least Squares에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!