matlab怎么显示一个复数的实数部分

如题所述

a=1+2i
ra=real(a) % 实部
ia=imag(a) % 虚部

a =

   1.0000 + 2.0000i


ra =

     1


ia =

     2

温馨提示:答案为网友推荐,仅供参考
相似回答