The outputs of fsolve function are complex
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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?
0 commentaires
Réponse acceptée
Youssef Khmou
le 10 Mai 2013
Modifié(e) : Youssef Khmou
le 10 Mai 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.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Robotics dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!