SLIDER Add slider to a figure

Usage: >> slider( handler, horiz, vert, horizmag, vertmag);

Inputs:
handler   
figure handler (for the current figure, use gcf)
horiz   
[0|1] add a horizontal slider
vert   
[0|1] add a horizontal slider
horizmag   
magnify the width of the figure before adding the slider. Default is 1.
vertmag   
magnify the height of the figure before adding the slider. Default is 1.
allowsup   
[0|1] allow suppression of slider by the 'x' button. Default is 1.

Note: clicking on the 'x' the right corner restores the original setting

Example: figure; plot(1:10); slider(gcf, 1, 1, 2, 2);

Author: Arnaud Delorme, CNL / Salk Institute, 2001

See also: eeglab()

See the matlab file slider.m (may require other functions)

Back to functions