Ignore:
Timestamp:
Apr 13, 2021, 7:19:35 PM (3 years ago)
Author:
sommeria
Message:

various bugs repaired

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/plot_field.m

    r1097 r1098  
    114114
    115115%% check input structure
    116     [CellInfo,NbDimArray,errormsg]=find_field_cells(Data);
    117     if ~isempty(errormsg)
    118         msgbox_uvmat('ERROR',['input of plot_field/find_field_cells: ' errormsg]);
    119         return
    120     end
    121     index_0D=find(NbDimArray==0);
    122     index_1D=find(NbDimArray==1);
    123     index_2D=find(NbDimArray==2);%find 2D fields
    124     index_3D=find(NbDimArray>2,1);
    125     if ~isempty(index_3D)
    126         msgbox_uvmat('ERROR','volume plot not implemented yet');
    127         return
    128     end
     116[CellInfo,NbDimArray,errormsg]=find_field_cells(Data);
     117if ~isempty(errormsg)
     118    msgbox_uvmat('ERROR',['input of plot_field/find_field_cells: ' errormsg]);
     119    return
     120end
     121index_0D=find(NbDimArray==0);
     122index_1D=find(NbDimArray==1);
     123index_2D=find(NbDimArray==2);%find 2D fields
     124index_3D=find(NbDimArray>2,1);
     125if ~isempty(index_3D)
     126    msgbox_uvmat('ERROR','volume plot not implemented yet');
     127    return
     128end
    129129
    130130%% test axes and figure
Note: See TracChangeset for help on using the changeset viewer.