DrawRect

Draws a 1-pixel rectangle on an input image with a given color ('r', 'g' or 'b').

You are now following this Submission

Given an input image and a rectangle as [x y width height], the output is an image with 1 pixel thick rectangle drawn over the image as per inputs desired.

Cite As

Vidya Murali (2026). DrawRect (https://in.mathworks.com/matlabcentral/fileexchange/35220-drawrect), 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