Changeset 210 for trunk/src/uvmat.m
- Timestamp:
- Feb 28, 2011, 11:29:08 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/uvmat.m
r206 r210 2389 2389 return 2390 2390 end 2391 'testUVMAT' 2392 UvData.Field 2393 [CellVarIndex,NbDim,VarType,errormsg]=find_field_indices(UvData.Field) 2391 [CellVarIndex,NbDim,VarType,errormsg]=find_field_indices(UvData.Field); 2394 2392 if ~isempty(errormsg) 2395 2393 errormsg=['error in uvmat/refresh_field/find_field_indices: ' errormsg]; … … 2397 2395 end 2398 2396 [NbDim,imax]=max(NbDim); 2399 VarType{imax} 2397 if isfield(UvData.Field,'NbDim') 2398 NbDim=UvData.Field.NbDim;% deal with plane fields containing z coordinates 2399 end 2400 2400 if ~isempty(VarType{imax}.coord_x) && ~isempty(VarType{imax}.coord_y) %unstructured coordinates 2401 2401 XName=UvData.Field.ListVarName{VarType{imax}.coord_x}; … … 3019 3019 end 3020 3020 if numel(RootFile_1)>=1 3021 if ~(isequal(RootFile_1(1),'/')| isequal(RootFile_1(1),'\'))3021 if ~(isequal(RootFile_1(1),'/')||isequal(RootFile_1(1),'\')) 3022 3022 RootFile_1(1)=[];%suppress possible / or \ separator 3023 3023 end … … 3176 3176 [FileName,RootPath,FileBase,FileIndices,FileExt_prev]=read_file_boxes_1(handles); 3177 3177 [P,F,str1,str2,str_a,str_b,E,NomType]=name2display(['xxx' get(handles.FileIndex,'String') FileExt_prev]); 3178 if isempty(FileExt_prev)| isequal(FileExt_prev,'')3178 if isempty(FileExt_prev)|| strcmp(FileExt_prev,'') 3179 3179 FileExt_1=get(handles.FileExt,'String'); 3180 3180 else … … 3182 3182 end 3183 3183 NomType_1=get(handles.FileIndex_1,'UserData'); 3184 if isempty(NomType_1)| isequal(NomType_1,'')3184 if isempty(NomType_1)|| strcmp(NomType_1,'') 3185 3185 NomType_1=get(handles.FileIndex,'UserData'); 3186 3186 end … … 4314 4314 ObjectData.enable_plot=1; 4315 4315 else 4316 4316 if isfield(ObjectData,'enable_plot') 4317 4317 ObjectData=rmfield(ObjectData,'enable_plot'); 4318 4318 end
Note: See TracChangeset
for help on using the changeset viewer.