Azzera filtri
Azzera filtri

The outputs of fsolve function are complex

1 visualizzazione (ultimi 30 giorni)
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?

Risposta accettata

Youssef  Khmou
Youssef Khmou il 10 Mag 2013
Modificato: Youssef Khmou il 10 Mag 2013
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.

Più risposte (0)

Categorie

Scopri di più su Simulink in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by