📄 plot_params.m
字号:
% plot_params.m
% plot函数参数的示例
% 产生一维自变量向量
t=[0:pi/20:3*pi]';
% 产生需要绘制的复数矩阵
y=exp(-1/3*t).*sin(2*t+3);
y1=exp(-1/3*t);
% 绘制曲线
plot(t,y,'b:*');
xlabel('t');ylabel('y');
hold on;
plot(t,y1,'r-');
title('linestyles and markers');
legend('y=exp(-1/3*t).*sin(2*t+3)','y1=exp(-1/3*t)');
axis square;
grid on;
hold off;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -