Labfans是一个针对大学生、工程师和科研工作者的技术社区。 | 论坛首页 | 联系我们(Contact Us) |
![]() |
![]() |
#1 |
高级会员
注册日期: 2019-11-21
帖子: 3,006
声望力: 66 ![]() |
![]()
我不知道在MATLAB中如何绘制一个圆并正确显示它,而不是默认显示为椭圆。我想这与轴上的局部坐标系有关。
回答: 您可以使用命令axis equal将每个轴上的数据单位设置为相同。这是一个例子: theta = linspace(0, 2*pi, 100); subplot(121); % Show the default plot plot(cos(theta), sin(theta)); title('Default axes settings'); subplot(122); % Show a plot with equal data units plot(cos(theta), sin(theta)); title('Equalized tick spacing'); axis equal; ![]() 更多&回答... |
![]() |
![]() |