Changeset 150 for trunk/src/get_field.m
- Timestamp:
- Dec 3, 2010, 12:16:51 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/get_field.m
r147 r150 172 172 inputfile=get(handles.inputfile,'String'); 173 173 Field=nc2struct(inputfile);% reads the whole field 174 if isfield(Field,'Txt') 175 msgbox_uvmat('ERROR',Field.Txt) 176 else 174 177 set(handles.figure1,'UserData',Field); 175 178 Field_input(eventdata,handles,Field); 179 end 176 180 177 181 %------------------------------------------------------------------------ … … 811 815 812 816 %------------------------------------------------------------------------ 817 % --- Function for plotting the current subfield 813 818 function plot_get_field(SubField,handles) 814 819 %------------------------------------------------------------------------ … … 816 821 val=get(handles.list_fig,'Value'); 817 822 if strcmp(list_fig{val},'uvmat') 818 % set(handles.figure1,'Name','uvmat_field')819 823 set(handles.inputfile,'Enable','off')% desactivate the input file edit box 820 % set(handles.list_fig,'Visible','off')%821 824 set(handles.RUN,'Visible','off')% RUN button not visible (passive mode, get_field used to define the field for uvamt) 822 825 set(handles.MenuOpen,'Visible','off') … … 826 829 view_field(SubField) 827 830 else 828 hfig=str2 num(list_fig{val});% chosen figure number from tyhe GUI829 if is empty(hfig)831 hfig=str2double(list_fig{val});% chosen figure number from tyhe GUI 832 if isnan(hfig) 830 833 hfig=figure; 831 834 list_fig=[list_fig;num2str(hfig)]; … … 1075 1078 % update dimensions; 1076 1079 if isfield(Field,'ListDimName') 1077 Field.ListDimName1078 1080 Tabdim={};%default 1079 1081 if isequal(index,1)%list all dimensions
Note: See TracChangeset
for help on using the changeset viewer.