2017-04-25 147 views

回答

3

的代码我无法检查新作为的代码我在这里(2015a)有太老的MATLAB,但从doc浏览看来,它实际上是直接在圆圈中绘制数据点。旧的将极坐标数据转换为xy,然后绘制图像上的所有其余部分(圆形,辐条和标签)。 这意味着老polar例如可以被用作:

r = 1:100; 
theta = 1:100; 
polar(theta, r) 
hold on 
plot(r) 

这将引起一个奇怪的螺旋加一条线从中心去右上角(和极地边界之外)。不知道这在代码中有多普遍,但我可以看出为什么Mathworks不想给出一个“合适的”极坐标图来破坏现有的代码 - 从doc看起来上面的代码不可能与新的polarplot (最后提示:To plot additional data in the polar axes, use the hold on command. However, you cannot plot data that requires Cartesian axes in a polar chart.

+0

很好的答案。任何想法如何填补polarplot线下面的区域?用旧的极地很容易,我可以使用补丁,在这里看到最好的答案:https://it.mathworks.com/matlabcentral/answers/325344-filling-between-two-polar-plots – Lupocci