필터 지우기
필터 지우기

Symbolic imaginary number conversion

조회 수: 2 (최근 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 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