How to plot a straight line in polar coordinate system
39 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Jian Teng
am 30 Mai 2018
Kommentiert: Star Strider
am 30 Mai 2018
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 Kommentare
John D'Errico
am 30 Mai 2018
Is the goal that the lines pass through the origin of the polar coordinate system, extending radially out to a radius of 54?
Akzeptierte Antwort
Star Strider
am 30 Mai 2018
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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Polar Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!