This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

Coding App Behavior

Control behavior of apps

Callbacks are responsible for the interactive functionality of an app. A callback is a function that you write to make components (such as buttons, sliders, or menus) respond to user interactions (such as button clicks, slider movements, and menu item selections).

You can assign callback functions to specific components by setting certain properties on those components. For more information, see Write Callbacks in GUIDE and Write Callbacks for Apps Created Programmatically.


guide Open GUIDE
uiwait Block program execution and wait to resume
uiresume Resume execution of blocked program
waitfor Block execution and wait for condition
waitforbuttonpress Wait for key press or mouse-button click
closereq Default figure close request function
getappdata Retrieve application-defined data
setappdata Store application-defined data
isappdata True if application-defined data exists
rmappdata Remove application-defined data
guidata Store or retrieve UI data
guihandles Create structure of handles
uisetpref Manage preferences used in uigetpref


Code Functionality into Your App

Write Callbacks for Apps Created Programmatically

Learn about writing callbacks to control the behavior of apps you create programmatically.

Write Callbacks in GUIDE

Learn about writing callbacks to control the behavior of apps you create in GUIDE.

Callbacks for Specific Components

Learn how to program specific functionality for different components.

Share Data Among Callbacks

Learn different ways to manage and share data in your app.

Initialize a Programmatic App

Learn how to initialize property values and set defaults before the UI displays.

Initialize UI Components in GUIDE Apps

Learn how to initialize UI components and set defaults in your GUIDE app.

Interrupt Callback Execution

Learn how to control whether callbacks can be interrupted by other callbacks.

Structure of Programmatic App Code Files

Learn how to organize your app code.

Sample GUIDE Apps

GUIDE App Containing Tables and Plots

Examine a GUIDE app that displays tabular data and two plots.

Modal Dialog Box in GUIDE

Create a modal dialog box to confirm an operation.

Interactive List Box App in GUIDE

Examine a GUIDE app displays a list box that users can interact with.

GUIDE App With Parameters for Displaying Plots

Examine a GUIDE App that analyzes input data and generates frequency and time domain plots.

Plot Workspace Variables in a GUIDE App

Examine a GUIDE app that plots workspace variables.

Automatically Refresh Plot in a GUIDE App

Examine a GUIDE app that uses a timer object to continuously update plot data.

Was this topic helpful?