Symbolic imaginary number conversion

1 次查看(过去 30 天)
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

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Symbolic Math Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by