Changeset 210 for trunk/src/uvmat.m


Ignore:
Timestamp:
Feb 28, 2011, 11:29:08 PM (13 years ago)
Author:
sommeria
Message:

correction bug for vector plot (Fixscale did not work), extensions for 3D fields

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/uvmat.m

    r206 r210  
    23892389    return
    23902390end
    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);
    23942392if ~isempty(errormsg)
    23952393    errormsg=['error in uvmat/refresh_field/find_field_indices: ' errormsg];
     
    23972395end
    23982396[NbDim,imax]=max(NbDim);
    2399 VarType{imax}
     2397if isfield(UvData.Field,'NbDim')
     2398    NbDim=UvData.Field.NbDim;% deal with plane fields containing z coordinates
     2399end
    24002400if ~isempty(VarType{imax}.coord_x)  && ~isempty(VarType{imax}.coord_y)    %unstructured coordinates
    24012401    XName=UvData.Field.ListVarName{VarType{imax}.coord_x};
     
    30193019end
    30203020if numel(RootFile_1)>=1
    3021     if ~(isequal(RootFile_1(1),'/')|isequal(RootFile_1(1),'\'))
     3021    if ~(isequal(RootFile_1(1),'/')||isequal(RootFile_1(1),'\'))
    30223022        RootFile_1(1)=[];%suppress possible / or \ separator
    30233023    end
     
    31763176[FileName,RootPath,FileBase,FileIndices,FileExt_prev]=read_file_boxes_1(handles);
    31773177[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,'')
     3178if isempty(FileExt_prev)|| strcmp(FileExt_prev,'')
    31793179    FileExt_1=get(handles.FileExt,'String');
    31803180else
     
    31823182end
    31833183NomType_1=get(handles.FileIndex_1,'UserData');
    3184 if isempty(NomType_1)|isequal(NomType_1,'')
     3184if isempty(NomType_1)|| strcmp(NomType_1,'')
    31853185    NomType_1=get(handles.FileIndex,'UserData');
    31863186end
     
    43144314    ObjectData.enable_plot=1;
    43154315else
    4316         if isfield(ObjectData,'enable_plot')
     4316    if isfield(ObjectData,'enable_plot')
    43174317        ObjectData=rmfield(ObjectData,'enable_plot');
    43184318    end
Note: See TracChangeset for help on using the changeset viewer.