x = 0:0.1:8;
y1 = sin(x);
y2 = cos(x);
subplot(221);
plot(x,y1);
subplot(222);
plot(x,y1,x,y2,'.');
line = [1 2 3];
w = [2 3 4];
w1 = [3 1 6];
subplot(223);
plot(line,w,line,w1);
q = [4 6;3 5;1 2];
subplot(224);
plot(w,q);
![nihao.png 163850837.png](https://i-blog.csdnimg.cn/blog_migrate/3ed042d8d5744d99d6e15f7859a4168b.png)
转载于:https://blog.51cto.com/gammme/1299749