Create Circles

Create circles and other shapes with the mouse.
1.9K Downloads
Updated 18 Jun 2008

No License

Lets you create a circle with N points in the current figure. Use the mouse to indicate the center and adjust the radius. Press ENTER to confirm the shape and output its X and Y values. The N parameter is optional. Default 20.
N = 3 can be used to draw triangles, N = 4 to draw squares etc.

Uses parts of getrect and getline (c) The MathWorks, inc.

Cite As

J.A. Disselhorst (2024). Create Circles (https://www.mathworks.com/matlabcentral/fileexchange/20319-create-circles), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2006a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired: draw

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0

edit: inspired by