12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

uisetcolorPurpose2uisetcolorSet an object’s ColorSpec from a dialog box interactivelySyntaxDescriptionSee Alsoc = uisetcolor(h_or_c, 'DialogTitle');uisetcolor displays a dialog box for the user to fill in, then applies the selectedcolor to the appropriate property of the graphics object identified by the firstargument.h_or_c can be either a handle to a graphics object or an RGB triple. If youspecify a handle, it must specify a graphics object that have a Color property.If you specify a color, it must be a valid RGB triple (e.g., [1 0 0] for red). Thecolor specified is used to initialize the dialog box. If no initial RGB is specified,the dialog box initializes the color to black.DialogTitle is a string that is used as the title of the dialog box.c is the RGB value selected by the user. If the user presses Cancel from thedialog box, or if any error occurs, c is set to the input RGB triple, if provided;otherwise, it is set to 0.ColorSpec2-572

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!