%绘出复指数序列x(n)=2*exp(-16+(π/6*i*n)的波形
%生成一个复指数序列c = -1/6 +(pi/6)* i;
K =2;n =0:20;
c = -1/6 +(pi/6)* j;
x = K*exp(c*n);
subplot(2,1,1);
stem(n,real(x))
xlabel('时间序列n');
ylabel('振幅');title('实部');
subplot(2,1,2);
stem(n,imag(x) );
xlabel('时间序列n');ylabel('振幅');title('虚部');