复数的幂运算

复数的幂运算的形式为Z^n,结果返回复数Z的n次幂。下面举例说明。

在命令窗口输入

code.matlab
>> (3+i)^2
ans=
     8.0000 + 6.0000i