Create Circles

Create circles and other shapes with the mouse.

You are now following this Submission

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 (2026). Create Circles (https://se.mathworks.com/matlabcentral/fileexchange/20319-create-circles), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: draw

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0

edit: inspired by