View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from

Be the first to rate this file! 5 Downloads (last 30 days) File Size: 2.11 KB File ID: #31088 Version:
image thumbnail



Brett Shoelson (view profile)


18 Apr 2011 (Updated )

Creates patch(es) of a user-specified color at user-specified x- y- positions.

| Watch this File

File Information

Paint individual pixels or matrix coordinates in the current axes!
Creates patches on the current axes corresponding to the x-,y- positions specified by vectors XPOS and YPOS, of a color specified by COLOROPT default: 'r'). Uses the PATCH command, so is constrained by anything that constrains patches.
XPOS is a vector of x (column) positions.
YPOS is a vector (the same length as XPOS) of y (row) positions.
COLOROPT is an RGB color or standard string recognized as a color by MATLAB. (Default = 'r').
P is a vector of handles to patch objects. (Note that all patches are created, for convenience, with a tag of 'colorpixel'.) All patches are modifiable using the handles to the patch objects.

MATLAB release MATLAB 7.12 (R2011a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
01 Sep 2016

Updated license

Contact us