Fitting Complex data to complex model

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

답변 (1개)

Alan Weiss
Alan Weiss 2013년 12월 5일

0 개 추천

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

Amin
Amin 2013년 12월 5일
Thank you for your response. OK, I got what you mean, but then do you want to use Z as your function? or x and y separately? I used x and y separate, but the parameters are not same and also the responds are not good for both and imaginary. I mean that you could not solve it just with real part and then use the parameters for the imaginary parts, because it does not fit good. Then, what is your idea about that?
Alan Weiss
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

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

카테고리

도움말 센터File Exchange에서 Systems of Nonlinear Equations에 대해 자세히 알아보기

질문:

2013년 12월 5일

댓글:

2013년 12월 5일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by