Symbolic imaginary number conversion

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

 Respuesta aceptada

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

Más respuestas (0)

Categorías

Más información sobre Symbolic Math Toolbox en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 29 de Jun. de 2011

Community Treasure Hunt

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

Start Hunting!

Translated by