各位高手:
如何在同一窗口中采用子图形式分别绘制正方形、圆、三角形和六边形?
用函数subplot(m,n,p)
subplot(2,2,p)
至于三角形和六边形正方形如何绘制就不太懂了
问题的关键就在这里啦,o(∩_∩)o...哈哈,我就是不懂这个······:ft:
兄弟终于给你编了个不怎么样凑合着用吧,圆不知道怎么化
x1=[0 1 2];
y1=[0 1 0];
x2=[1 1.5 2.5 3 2.5 1.5];
y2=[1+sqrt(3)/2 1 1 1+sqrt(3)/2 1+sqrt(3) 1+sqrt(3)];x3=[1 1 2 2];
x3=[1 2 2 1];
y3=[1 1 2 2];
subplot(2,2,1)
fill(x1,y1,'b')
subplot(2,2,2)
fill(x2,y2,'r')
subplot(2,2,3)
fill(x3,y3,'m')
vBulletin® v3.8.3,版权所有 ©2000-2025,Jelsoft Enterprises Ltd.