test

   1: function [] = GUI_1()
   2: % Demonstrate how to delete an entry from a uicontrol string.  
   3: % Creates a listbox with some strings in it and a pushbutton.  When user  
   4: % pushes the pushbutton, the selected entry in the listbox will be deleted.
   5: %
   6: % Suggested exercise:  Modify the GUI so when the user deletes a certain
   7: % string, the 'value' property is set to the previous string instead of to
   8: % the first string.
   9: %
  10: %
  11: % Author:  Matt Fig
  12: % Date:  7/15/2009
  13:  
  14: S.fh = figure('units','pixels',...
  15:               'position',[500 400 200 260],...
  16:               'menubar','none',...
  17:               'name','GUI_1',...
  18:               'numbertitle','off',...
  19:               'resize','off');

posted on 2011-08-16 21:50  胡光-  阅读(111)  评论(0)    收藏  举报

导航