MATLAB: How to plot a straight line in polar coordinate system

MATLABpolarpolar coordinate systemscatter plot

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.

Best Answer

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.
Related Question