⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 example_subplot.asv

📁 基础程序
💻 ASV
字号:
% example_subplot.m
% subplot函数绘制示例
x=linspace(0,2*pi,100);

a=sin(x);
b=2*sin(x).*cos(x);
c=sin(x)./(cos(x)+eps);
% 绘制图形一:
subplot(2,2,1);
plot(x,a,'b*-');
title('figure1: sin(x)');
grid on;
axis([0 2*pi -1 1]);
% 绘制图形二:
subplot(2,2,2);
plot(x,b,'rp-');
title('figure2: 2sin(x)cos(x)');
grid on;
axis([0 2*pi -1 1]);
% 绘制图形三:
subplot('position',[0.2 0.05 0.6 0.40]);
plot(x,c);
title('figure3: sin(x)/(cos(x))');
grid on;
axis([0 2*pi -75 75]);

⌨️ 快捷键说明

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