필터 지우기
필터 지우기

The outputs of fsolve function are complex

조회 수: 1 (최근 30일)
huan tu
huan tu 2013년 5월 8일
Hi all! I use the fsolve function by incorperating a interpreted matlab function block.The outputs of fsolve function are complex and the iteration is rather slow, but my expectation is real number, so what's the problem, how can i debug it?

채택된 답변

Youssef  Khmou
Youssef Khmou 2013년 5월 10일
편집: Youssef Khmou 2013년 5월 10일
hi,
it depends on the input function, for example the solution may contain a logarithm of negative value which is complex number,
you can use the 'abs' or 'real' function to the output.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by