DrawRect

Draws a 1-pixel rectangle on an input image with a given color ('r', 'g' or 'b').
382 Downloads
Updated 23 Feb 2012

View License

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://www.mathworks.com/matlabcentral/fileexchange/35220-drawrect), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2011b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Version Published Release Notes
1.0.0.0