Filter löschen
Filter löschen

Symbolic imaginary number conversion

1 Ansicht (letzte 30 Tage)
Chris
Chris am 29 Jun. 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

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by