File Exchange

image thumbnail

COLORPIXEL

version 1.0.0.1 (2.11 KB) by Brett Shoelson
Creates patch(es) of a user-specified color at user-specified x- y- positions.

0 Downloads

Updated 01 Sep 2016

View License

Paint individual pixels or matrix coordinates in the current axes!
SYNTAX:
P = COLORPIXEL(XPOS,YPOS,COLOROPT)

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.

INPUTS:
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').

OUTPUTS:
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.

Cite As

Brett Shoelson (2020). COLORPIXEL (https://www.mathworks.com/matlabcentral/fileexchange/31088-colorpixel), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (0)

Updates

1.0.0.1

Updated license

MATLAB Release Compatibility
Created with R2011a
Compatible with any release
Platform Compatibility
Windows macOS Linux