How to polarplot theta=3*pi/4 ?

1 次查看(过去 30 天)
Shivam Gupta
Shivam Gupta 2016-10-31
theta=3*pi/4
  2 个评论
Thorsten
Thorsten 2016-10-31
This would be just a single point. Are you sure that this is what you want?
Shivam Gupta
Shivam Gupta 2016-10-31
This would be like a straight line passing through origin with angle with positive x axis 3*pi/4

请先登录,再进行评论。

回答(3 个)

Star Strider
Star Strider 2016-10-31
编辑:Star Strider 2016-10-31
theta = 3*pi/4;
figure(1)
plot(theta, 'pg')
EDIT Using the polar plot:
theta = 3*pi/4;
figure(1)
polar(theta*[1 1], [0 1], '-pg')

Thorsten
Thorsten 2016-11-1
theta = 3/4*pi;
plot([0 cos(theta)], [0 sin(theta)])
axis equal
axis([-1 1 -1 1])

Steven Lord
Steven Lord 2016-11-1
r = [-5 5];
theta = repmat(3*pi/4, size(r));
polarplot(theta, r)
Adjust the values in r to suit your desired polar axes radius.

类别

Help CenterFile Exchange 中查找有关 Polar Plots 的更多信息

标签

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by