DrawRect

Draws a 1-pixel rectangle on an input image with a given color ('r', 'g' or 'b').
381 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 (2024). 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

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0