> 数学 >
matlab题目:要求在同一图形窗口采用子图形式分别绘制正方形,圆,三角形和六边形
人气:362 ℃ 时间:2019-08-22 18:21:53
解答
ord=[3 4 6 2^10]for i=1:4subplot(2,2,i)theta=linspace(pi/ord(i),2*pi+pi/ord(i),ord(i)+1);plot(cos(theta),sin(theta));xlim(1.5*[-1,1]);ylim(1.5*[-1,1]);axis equal;end
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版