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


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章