How to create a polar rectangle in Matlab

7 views (last 30 days)
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.

Accepted Answer

Star Strider
Star Strider on 28 Feb 2018
I am not certain what you want.
Try this:
theta = linspace(0, 2*pi, 5);
polarplot(theta, ones(size(theta)))

Sign in to comment.

More Answers (0)


Community Treasure Hunt

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

Start Hunting!

Translated by