Changeset 309 for trunk/src/read_GUI.m
- Timestamp:
- Nov 30, 2011, 11:09:12 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/read_GUI.m
r295 r309 1 % -------------------------------------------------------------------- 1 % ----------------------------------------------------------------------- 2 2 % --- read a GUI with handle 'handle' producing a structure 'struct' 3 3 function struct=read_GUI(handle) 4 %------------------------------------------------------------------------ 4 5 struct=[];%default 5 6 hchild=get(handle,'children'); … … 43 44 listinput=get(hchild(ichild),'String'); 44 45 value=get(hchild(ichild),'Value'); 45 input=listinput(value); 46 input=listinput(value); 47 separator=regexp(tag,'_'); 48 if strcmp(tag(1:separator),'num_') 49 input=str2double(input);% transform to numerical values if the uicontrol tag begins with 'num_' 50 tag=tag(separator+1:end); 51 end 46 52 otherwise 47 53 check_input=0;
Note: See TracChangeset
for help on using the changeset viewer.