有谁知道如何修改Matlab的rose函数,使其只显示从0到pi/2 (0-90)的范围?
我好像哪儿都找不到。xlim和ylim似乎不起作用
发布于 2017-01-22 18:40:05
您可以使用父XLim和YLim属性来调整显示,使其只显示第一个象限。
hax = axes();
theta = [0.4 1.4 3.1 2.3 0.4 2.5 3.9 2.8 2.3 1.6 4.6 4.5 6.1 3.9 5.1];
rose(hax, theta, 10)
% Set the x and y limits to show only the first quadrant
hax.XLim = [0 hax.XLim(2)];
hax.YLim = [0 hax.YLim(2)];

如果你想要0到π(180度)
hax = axes();
rose(hax, theta, 10)
% Set only the y limits
hax.YLim = [0 hax.YLim(2)];

https://stackoverflow.com/questions/41794589
复制相似问题