plotxy15.m

来自「实现matlab很多功能的源代码」· M 代码 · 共 10 行

M
10
字号
subplot(1,1,1);  
x = 0:0.1:2*pi;  
y1 = sin(x);  
y2 = exp(-x);  
plot(x, y1, '--*', x, y2, ':o');  
xlabel('t = 0 to 2\pi');  
ylabel('values of sin(t) and e^{-x}')  
title('Function Plots of sin(t) and e^{-x}');  
legend('sin(t)','e^{-x}');  

⌨️ 快捷键说明

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