Draw a rectangle
Draw a rectangle

Draw a rectangle

This is a function to draw a rectangle given the center, width and height, and the rotation angle.

Download
Download

You are now following this Submission

Cite As

Rasoul Mojtahedzadeh (2026). Draw a rectangle (https://in.mathworks.com/matlabcentral/fileexchange/33767-draw-a-rectangle), 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.1.0

- The problem with calculating the center of the rectangle has been solved.

Download
1.0.0

Download