matlab 2D plot 绘图函数

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);


163850837.png


本文出自 “我为未来而战” 博客,谢绝转载!

你可能感兴趣的:(matlab)