Symbolic imaginary number conversion

1 回表示 (過去 30 日間)
Chris
Chris 2011 年 6 月 29 日
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 Center および File ExchangeSymbolic Math Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by