フィルターのクリア

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 Center および File ExchangeSimulink についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by