z=a+bi

matlab复数计算_matlab

 

 

 



>> z=2+3i

z =

2.0000 + 3.0000i

>>
>> z.^2

ans =

-5.0000 +12.0000i

>>
>>
>> z.^3

ans =

-46.0000 + 9.0000i

>>
>>