在极坐标图matlab中的直线

时间:2012-11-18 07:19:26

标签: matlab plot 2d polar-coordinates

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

示例:(考虑θ为度)

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

syntax: polar(theta,rho);

1 个答案:

答案 0 :(得分:2)

就像这样:

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

enter image description here

相关问题