a=1+2i
shibu=real(a)
xubu=imag(a)
>> a=1+2i
a =
1.000000000000000 + 2.000000000000000i
>> shibu=real(a)
shibu =
1
>> xubu=imag(a)
xubu =
2
a=1+2i
shibu=real(a)
xubu=imag(a)
>> a=1+2i
a =
1.000000000000000 + 2.000000000000000i
>> shibu=real(a)
shibu =
1
>> xubu=imag(a)
xubu =
2