plot511.m
来自「matlab7[1].0从入门到精通-光盘程序」· M 代码 · 共 39 行
M
39 行
function plot511
figure(1)
t=1:0.1:10;
y=sin(t);
plot(y)
figure(2)
y= [0 1 2;2 3 4;5 6 7]
plot(y)
figure(3)
x=[1:1:100];
y=[2:2:200];
z=x+y.*i;
plot(z)
figure(4)
x=0:0.1:10;
y=sin(x)+2;
plot(x,y)
figure(5)
x=0:0.1:10;
y=[sin(x)+2;cos(x)+1];
plot(x,y)
figure(6)
x=[1 2 3;4 5 6;7 8 9;2 3 4;5 6 7];
y=[2 4 5;3 6 7;4 6 8;1 3 5;2 6 3];
plot(x,y)
figure(7)
x=0:0.5:20;
y=sin(x);
plot(x,y,'-.rd')
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?