简体   繁体   English

Matlab中的极坐标图

[英]Polar coordinate plot in Matlab

I have multiple theta and rho stored as matrices in variable out .我有多个thetarho作为矩阵存储在变量out I want to plot all of them using polar function in Matlab R2015b.我想在 Matlab R2015b 中使用polar函数绘制所有这些。

I'm new to Matlab and so far I did this :我是 Matlab 的新手,到目前为止我是这样做的:

subplot(1,3,1)
polar(out(1),out(2),'*')
subplot(1,3,2)
polar(out(3),out(4),'*')
subplot(1,3,3)
polar(out(5),out(6),'*')

matlab 绘图图像

I've two questions:我有两个问题:

How can I combine them into a single polar plot, ie one figure instead of three with '*' position intact ?我怎样才能将它们组合成一个单一的极坐标图,即一个数字而不是三个, '*'位置完好无损?

How can I remove the lower part of polar plot so that I can have a semicircle instead of full plot?如何删除极坐标图的下部,以便我可以有一个半圆而不是完整图? Is it possible to customize polar plot labels like removing the degree labels?是否可以自定义极坐标图标签,例如删除度数标签?

    • Use the commmand hold on (and get rid of the subplots) or使用命令hold on (并摆脱子图)
    • Plot everything together with polar(out(1:2:end),out(2:2:end),'*')将所有内容与polar(out(1:2:end),out(2:2:end),'*')一起绘制
  1. Use the ylim([-0.5 0]) command see this answer .使用ylim([-0.5 0])命令查看此答案

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM