How to use matlab to draw (plot) a triangle?
這裡使用gplot:
>> x = rand(5);
>> y = rand(5);
>> gplot(x,y);
gplot把圖裡面所有的點都連起來
所以如果只給3個點的話,就會出現三角形囉~
全站熱搜
How to use matlab to draw (plot) a triangle?
這裡使用gplot:
>> x = rand(5);
>> y = rand(5);
>> gplot(x,y);
gplot把圖裡面所有的點都連起來
所以如果只給3個點的話,就會出現三角形囉~