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

 채택된 답변

Sean de Wolski
Sean de Wolski 2011년 6월 29일

0 개 추천

double(real(sym(3+4i)))
Extract the real component only.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

질문:

2011년 6월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by