Changeset 497 for trunk/src/read_GUI.m
- Timestamp:
- Jul 21, 2012, 11:15:52 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/read_GUI.m
r427 r497 1 % ----------------------------------------------------------------------- 2 % --- read a GUI with handle 'handle' producing a structure 'struct' 1 % 'read_GUI':read a GUI and provide the data as a Matlab structure 2 %---------------------------------------------------------------------- 3 % function struct=read_GUI(handle) 3 4 % 4 % The output Matlab structure 'struct' contains the information displayed on5 % the GUI or a panel with handle 'handle'5 % OUTPUT: 6 % struct: matlab structure containing the information displayed in the GUI 6 7 % The content of a panel with tag 'tag' is displayed as a substructure struct.(tag) (recursive use of read_GUI) 7 % Output of a nelement with tag 'tag':8 % 'checkbox','radiobutton','togglebutton': struct.(tag)=value9 % 'edit': struct.(tag)=string,8 % Output of a GUI element with tag 'tag': 9 % -case 'checkbox','radiobutton','togglebutton': struct.(tag)=value 10 % -case'edit': struct.(tag)=string, 10 11 % or, if the tag is in the form by 'num_tag', 11 12 % struct.(tag)=str2double(string). If the result is empty the 'UserData' is taken as the default input. 12 % 'listbox','popupmenu': struct.(tag)=selected string, or, if the tag is in the form by 'num_tag', struct.(tag)=str2double(string)13 % 'table': struct.(tag)=data of the table13 % -case 'listbox','popupmenu': struct.(tag)=selected string, or, if the tag is in the form by 'num_tag', struct.(tag)=str2double(string) 14 % -case 'table': struct.(tag)=data of the table 14 15 % 15 16 function struct=read_GUI(handle)
Note: See TracChangeset
for help on using the changeset viewer.