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

📄 plot_axis_params1.m

📁 基础程序
💻 M
字号:
% plot_axis_params1.m
% 根据设置参数来设置的示例
x=logspace(-2,0,500);
y=(sin(1./x).^3)./x;
% 绘制一:normal
subplot(2,2,1);
plot(x,y);
axis normal;
grid on;
title('figure1: normal');
% 绘制二:y-logx
subplot(2,2,2);
plot(x,y);
set(gca,'XScale','log','YScale','linear');
grid on;
title('figure2: y-logx');
% 绘制三:y-revx
subplot(2,2,3);
plot(x,y);
set(gca,'XDir','reverse','YDir','normal');
grid on;
title('figure3: y-revx');
% 绘制四:y-logx, with grid y off
subplot(2,2,4);
plot(x,y);
set(gca,'XScale','log','YScale','linear');
set(gca,'XGrid','on','YGrid','off');
title('figure4: y-logx, with grid y off');

⌨️ 快捷键说明

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