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.

uicontrolSliders accept numeric input within a specific range by enabling the user tomove a sliding bar. Users move the bar by pressing the mouse button anddragging the pointer over the bar, or by clicking in the trough or on an arrow.The location of the bar indicates a numeric value, which is selected by releasingthe mouse button. You can set the minimum, maximum, and current values ofthe slider.Static text boxes display lines of text. Static text is typically used to label othercontrols, provide directions to the user, or indicate values associated with aslider. Users cannot change static text interactively and there is no way toinvoke the callback routine associated with it.Toggle buttons are controls that execute callbacks when clicked on and indicatetheir state, either on or off. Toggle buttons are useful for building toolbars.More information about toggle buttons.RemarksPropertiesThe uicontrol function accepts property name/property value pairs,structures, and cell arrays as input arguments and optionally returns thehandle of the created object. You can also set and query property values aftercreating the object using the set and get functions.Uicontrol objects are children of figures and therefore do not require an axes toexist when placed in a figure window.This table lists all properties useful for uicontrol objects, grouping them byfunction. Each property name acts as a link to a description of the property.Property Name Property Description Property ValueControlling Style and AppearanceBackgroundColor Object background color Value: ColorSpecDefault: system dependentCDataTruecolor image displayed on thecontrolValue: matrixForegroundColor Color of text Value: ColorSpecDefault: [0 0 0]2-536

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

Saved successfully!

Ooh no, something went wrong!