Azzera filtri
Azzera filtri

Symbolic imaginary number conversion

1 visualizzazione (ultimi 30 giorni)
Chris
Chris il 29 Giu 2011
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

Risposta accettata

Sean de Wolski
Sean de Wolski il 29 Giu 2011
double(real(sym(3+4i)))
Extract the real component only.

Più risposte (0)

Categorie

Scopri di più su Symbolic Math Toolbox in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by