matlab - matlab极坐标图中的直线

标签 matlab plot 2d polar-coordinates

如何在 Matlab 中使用 polar() 命令绘制直线?

示例:(考虑 theta 以度为单位)

rho1 = 50;         rho2 = 60;
theta1 = 45;       theta2 = 60;

syntax: polar(theta,rho);

最佳答案

就像这样:

  % Using your definitions:
rho=[rho1 rho2];
theta=[theta1 theta2];
polar(theta,rho);

enter image description here

关于matlab - matlab极坐标图中的直线,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13438249/

相关文章:

matlab - 为 MATLAB 中的自定义类重载索引运算符 `()` 和 `{}`

matlab - 在将数据分配给结构数组时避免 eval

plot - 最小化 Mathematica 中自定义分布的 NExpectation

matlab - 我怎样才能在 MATLAB 中重现这个长方体图?

matlab - 在 Matlab 中根据 3D 矩阵进行绘图

matlab - 更改 Matlabs 默认缺少分号行为以使用 `datatipinfo` 而不是 `disp`

matlab - MATLAB图中轴号与轴的距离

c# - 二维游戏物理资源

c - 二维动态数组(C 语言),每行具有特定的行号和不同的列大小

math - 我们如何识别一组近似矩形的像素?