How to plot a straight line in polar coordinate system

I would like to plot a straight line in polar that is at 90 and 270 degree, and also a line at 0 degree. The line should have a length of 54.

2 comentarios

Is the goal that the lines pass through the origin of the polar coordinate system, extending radially out to a radius of 54?
Yes, I would like to have the line pass through the origin. With a radius of 54.

Iniciar sesión para comentar.

 Respuesta aceptada

Try this:
figure(1)
polar([0 90 270; 0 90 270]*pi/180, [0 0 0; 1 1 1]*54) % Use ‘polar’
figure(2)
polarplot([0 90 270; 0 90 270]*pi/180, [0 0 0; 1 1 1]*54) % Use ‘polarplot’
I will post the plot image if you want me to.

2 comentarios

Thank you so much!!!!!
As always, my pleasure!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Polar Plots en Centro de ayuda y File Exchange.

Productos

Versión

R2017a

Preguntada:

el 30 de Mayo de 2018

Comentada:

el 30 de Mayo de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by