ex2309.m

来自「数字信号处理的MATLAB实现」· M 代码 · 共 41 行

M
41
字号
%例23-9 坐标轴范围和比例设置(M-file)
%Ex23-09 axis example
clear
clc
t=0:0.01*pi:2*pi;
x=sin(t);
y=cos(t);
for i=1:9
    subplot(3,3,i)
    plot(x,y)
end
subplot(3,3,1)
axis auto normal
title('axis auto normal')
subplot(3,3,2)
axis([-2 2 -1.5 1.5])
axis normal
title('axis [] normal')
subplot(3,3,3)
axis tight normal
title('axis tight normal')
subplot(3,3,4)
axis auto square
title('axis auto square')
subplot(3,3,5)
axis([-2 2 -1.5 1.5])
axis square
title('axis [] square')
subplot(3,3,6)
axis tight square
title('axis tight square')
subplot(3,3,7)
axis auto equal
title('axis auto equal')
subplot(3,3,8)
axis([-2 2 -1.5 1.5])
axis equal
title('axis [] equal')
subplot(3,3,9)
axis tight equal
title('axis tight equal')

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?