plot_square

Produces coordinates of a square for matrix usage.

You are now following this Submission

Given a center and a radius, this program produces the coordinates of a square whether hollow or solid. This program is especially useful for drawing squares around circles. The result is a set of coordinates that is suitable for use to produce the square shape on a matrix.

Cite As

Alister Fong (2026). plot_square (https://in.mathworks.com/matlabcentral/fileexchange/4298-plot_square), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Images in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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