Path: Common/Graphics
% Create a GUI with playback controls.
callback can be a single function handle or an array of function handles.
Type PlaybackControls for a demo that updates the plots in two figures
simultaneously.
--------------------------------------------------------------------------
Form:
PlaybackControls( valMin, valMax, val0, callback, dx, name, position )
--------------------------------------------------------------------------
------
Inputs
------
valMin (1,1) Minimum value for slider bar
valMax (1,1) Maximum value for slider bar
val0 (1,1) Initial value of slider
callback {@} Callback function, 1 var. Example: @(x) disp(sin(x))
dx (1,1) Incremental change in x
name (1,:) String name for figure (optional)
position (1,4) Position in pixels of the figure
-------
Outputs
-------
None
--------------------------------------------------------------------------
Common: Graphics/Map
Back to the Common Module page