Changeset 987 for trunk/src


Ignore:
Timestamp:
Jan 22, 2017, 11:19:10 PM (7 years ago)
Author:
g7moreau
Message:
  • Rewrite some case
Location:
trunk/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/fill_GUI.m

    r977 r987  
    107107                            end
    108108                            set(hh(ibox),'String',input_string)
    109                         case{'listbox','popupmenu'}
     109                        case {'listbox','popupmenu'}
    110110                            if isnumeric(input_data)
    111111                                input_data=num2str(input_data,4);
  • trunk/src/read_GUI.m

    r977 r987  
    7070                            end
    7171                        end                       
    72                     case{'listbox','popupmenu'}
     72                    case {'listbox','popupmenu'}
    7373                        listinput=get(hchild(ichild),'String');
    7474                        value=get(hchild(ichild),'Value');
  • trunk/src/read_civdata.m

    r977 r987  
    8989    if ~isempty(FieldNames{ilist})
    9090        switch FieldNames{ilist}
    91             case{'U','V','norm(U,V)'}
     91            case {'U','V','norm(U,V)'}
    9292                if ~strcmp(FieldNames{1},'vec(U,V)')% if the scalar is not used as color of vectors
    9393                ProjModeRequest='interp_lin';
     
    122122end
    123123switch VelTypeOut
    124     case{'civ1','filter1'}
     124    case {'civ1','filter1'}
    125125        if isfield(Field,'Patch1_SubDomain')
    126126            Field.SubDomain=Field.Patch1_SubDomain;
     
    133133            Field.Time=Field.Civ1_Time;
    134134        end
    135     case{'civ2','filter2'}
     135    case {'civ2','filter2'}
    136136        if isfield(Field,'Patch2_SubDomain')
    137137            Field.SubDomain=Field.Patch2_SubDomain;
  • trunk/src/read_pivdata_fluidimage.m

    r977 r987  
    8989    if ~isempty(FieldNames{ilist})
    9090        switch FieldNames{ilist}
    91             case{'U','V','norm(U,V)'}
     91            case {'U','V','norm(U,V)'}
    9292                if ~strcmp(FieldNames{1},'vec(U,V)')% if the scalar is not used as color of vectors
    9393                ProjModeRequest='interp_lin';
     
    168168% end
    169169switch VelTypeOut
    170     case{'civ1','filter1'}
     170    case {'civ1','filter1'}
    171171        if isfield(Field,'Patch1_SubDomain')
    172172            Field.SubDomain=Field.Patch1_SubDomain;
     
    179179            Field.Time=Field.Civ1_Time;
    180180        end
    181     case{'civ2','filter2'}
     181    case {'civ2','filter2'}
    182182        if isfield(Field,'Patch2_SubDomain')
    183183            Field.SubDomain=Field.Patch2_SubDomain;
  • trunk/src/set_object.m

    r977 r987  
    234234%% set the number of lines in the Coord table depending on object type
    235235switch Type
    236     case{'line'}
     236    case {'line'}
    237237        if size(Coord,1)<2
    238238            if isequal(size(Coord,2),3)
     
    244244            Coord=Coord(1:2,:);
    245245        end
    246     case{'rectangle','ellipse','plane','volume'}
     246    case {'rectangle','ellipse','plane','volume'}
    247247        Coord=Coord(1,:);
    248248end
Note: See TracChangeset for help on using the changeset viewer.