Draw a circle in a matrix / image

Draw a circle in a 2D matrix using the integer midpoint circle algorithm

You are now following this Submission

This is a good example of the integer midpoint circle algorithm. No pixels are missed or repeated.

Cite As

Peter Bone (2026). Draw a circle in a matrix / image (https://www.mathworks.com/matlabcentral/fileexchange/14331-draw-a-circle-in-a-matrix-image), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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

no updates. Resubnmitting for license