x=cos(t)y=sin(t)
plot(x,y,':r')%画单位圆
axis equal%横纵坐游掘升标轴单位统一,使画散段出的圆变圆
grid on%网格
hold on%保持图形,以等分它神老
for i=0:15
plot([0,cos(pi*i/4)],[0,sin(pi*i/4)],'r')
end%画八等分的园
>>n=1:720>>alpha=n/2/pi
>>x=12*cos(alpha)
>凳肢>y=12*sin(alpha)
>>x=[xzeros(size(x))]
>>y=[yzeros(size(y))]
>碰凳>x=x(:)
>>y=y(:)
>>笑粗旅 ezplot('12*cos(t)','12*sin(t)')
>>hold on
>>plot(x,y)
>>hold off
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)