Symbolic imaginary number conversion
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I use the solve command, and get an imaginary result. How do I convert that to numeric form. Real numbers can be converted using double(), but it gives me an error when the number is imaginary.
Thanks,
Chris
0 commentaires
Réponse acceptée
Sean de Wolski
le 29 Juin 2011
double(real(sym(3+4i)))
Extract the real component only.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Symbolic Math Toolbox 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!