回复: matlab 有没有绘制三角形和六边形的函数?
兄弟终于给你编了个不怎么样凑合着用吧,圆不知道怎么化
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')
|