CHOICES

 

 Create a list of choices with uicontrols and callbacks.

  CHOICES('NAME',HEADER,BUTTONLABELS,CALLBACKS) creates

  a window with registered name NAME.  The window contains

  the string HEADER and buttons labeled with BUTTONLABELS.

  These buttons register callback strings from CALLBACKS.

  An additional button, labeled 'Close', is added to each

  choicelist.

 

 

  CHOICES is useful for constructing demo menus.

  Use CHOICES in conjunction with CHOICEX1LNVAKL, as in

  this example.

      header = 'Easy Example';

      labels = str2mat('Choice 1','Choice 2','Choice 3');

      callbacks = str2mat('image(magic(1))','image(magic(2))', ...

          'image(magic(3))');

      choices('EXAMPLE', header, labels, callbacks);