fg_01_05.m
来自「英文书《Digital Signal Processing with Examp」· M 代码 · 共 22 行
M
22 行
% stearns_01_05 Chapter 1, fig. 1.5
theta=2*pi*[0 1 2 3 4 5 6 7]/8;
rho=ones(1,8);
[x,y]=pol2cart(theta,rho);
%
sp_fig(1);
set(gcf,'paperPositionmode','auto');
axis([-1.75 1.75 -1.75 1.75]);
set(gca,'fontname','times','fontsize',18);
set(gca,'position',[.13 .15 .9-.13 .9-.15]);
%
hc=compass(x,y); hold;
set(hc,'color','k');
plot([0,0],[-1.5,1.5],'color','k');
plot([-1.5,1.5],[0,0],'color','k');
ht(1)=text(1.55,0,'Real');
ht(2)=text(-.35,1.6,'Imaginary');
ht(3)=title('Complex plane');
set(ht,'fontsize',18);
set(ht,'fontname','times');
hold off
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?