Matlab三维枝干图

来源:互联网 发布:arp设计软件 编辑:程序博客网 时间:2024/05/01 23:42
th = (0:127)/128*2*pi;x = cos(th);y = sin(th);%计算复平面上的单位园f = (abs(fft(ones(10,1),128)))';%计算一步频率响应stem3(x,y,f,'*');%绘制三维枝干图xlabel('实部');ylabel('虚部');zlabel('幅值');title('频率响应')