正在加载图片...
Subplot命令 格式: subplot(n,mp),将图形窗口分为n×m个子图,在第p个 子图上绘制图形 例子 CIC t=0:0.1:2*pi y=sin(t) · figure subplot(2, 2, 1), stem(t,y) title('stem(t,y)),pause subplot(2, 2, 2 ), stairs(t,y , m,) title(stairs(,y)), pause subplot(2, 2, 3 ) bar(t, y) title(bar(t, y)),pause subplot( 2, 2, 4), fill(t, y, --b), title(fill(t,y))Subplot命令 • 格式:subplot(n,m,p),将图形窗口分为n×m个子图,在第p个 子图上绘制图形 • 例子 • clc • t=0:0.1:2*pi; • y=sin(t); • figure • subplot(2,2,1),stem(t,y) • title('stem(t,y)'),pause • subplot(2,2,2),stairs(t,y,'m'), • title('stairs(t,y)'),pause • subplot(2,2,3),bar(t,y) • title('bar(t,y)'),pause • subplot(2,2,4),fill(t,y,'--b'),title('fill(t,y)')
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有