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.

Image PropertiesImageProperties2Image PropertiesThis section lists property names along with the types of values each propertyaccepts.BusyActioncancel | {queue}Callback routine interruption. The BusyAction property enables you to controlhow <strong>MATLAB</strong> handles events that potentially interrupt executing callbackroutines. If there is a callback routine executing, subsequently invokedcallback routes always attempt to interrupt it. If the Interruptible propertyof the object whose callback is executing is set to on (the default), theninterruption occurs at the next point where the event queue is processed. If theInterruptible property is off, the BusyAction property (of the object owningthe executing callback) determines how <strong>MATLAB</strong> handles the event. Thechoices are:• cancel – discard the event that attempted to execute a second callbackroutine.• queue – queue the event that attempted to execute a second callback routineuntil the current callback finishes.ButtonDownFcn stringButton press callback routine. A callback routine that executes whenever youpress a mouse button while the pointer is over the image object. Define thisroutine as a string that is a valid <strong>MATLAB</strong> expression or the name of an M-file.The expression executes in the <strong>MATLAB</strong> workspace.CDatamatrix or m-by-n-by-3 arrayThe image data. A matrix of values specifying the color of each rectangulararea defining the image. image(C) assigns the values of C to CData. <strong>MATLAB</strong>determines the coloring of the image in one of three ways:• Using the elements of CData as indices into the current colormap (thedefault)• Scaling the elements of CData to range between the valuesmin(get(gca,'CLim')) and max(get(gca,'CLim')) (CDataMapping set toscaled)• Interpreting the elements of CData directly as RGB values (true colorspecification)2-235

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

Saved successfully!

Ooh no, something went wrong!