How to create a polar rectangle in Matlab

1 Ansicht (letzte 30 Tage)
Ron Beck
Ron Beck am 28 Feb. 2018
Kommentiert: Star Strider am 1 Mär. 2018
Please help me determine how to create a polar rectangle (not sure what to call it) in Matlab. The closest I have gotten is using the linspace function for the two arc and a simple line to connect the two arcs. I can't seem to cleanly connect the four line segments to make a continuous shape.

Akzeptierte Antwort

Star Strider
Star Strider am 28 Feb. 2018
I am not certain what you want.
Try this:
theta = linspace(0, 2*pi, 5);
figure(1)
polarplot(theta, ones(size(theta)))
  8 Kommentare
Ron Beck
Ron Beck am 1 Mär. 2018
perfect
Star Strider
Star Strider am 1 Mär. 2018
As always, my pleasure.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Graphics Performance finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by