Fitting Complex data to complex model
26 次查看(过去 30 天)
显示 更早的评论
Dear Everybody, I have a set of the nonlinear complex numbers and want to fit it to the complex model. The point is that the model parameters are real and same for the real and imaginary part of the model. There is clue in : http://www.mathworks.com/help/optim/ug/fit-model-to-complex-data.html but unfortunately it gave me complex numbers for my parameters instead of the real ones. Is there any solution that you could give me? Thank you in advance for your attention
0 个评论
回答(1 个)
Alan Weiss
2013-12-5
If you want to ensure that your results are real, then reformulate your problem to be real. Express all complex numbers z by x + iy, wbere x and y are real.
Alan Weiss
MATLAB mathematical toolbox documentation
2 个评论
Alan Weiss
2013-12-5
Perhaps I did not express myself well. If you have some model parameters p that are "...real and same for the real and imaginary part of the model", then make those parameters p real, with no complex part. Put in complex numbers z = x + iy wherever you need to, and optimize over p.
Alan Weiss
MATLAB mathematical toolbox documentation
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Systems of Nonlinear Equations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!