Changeset 575 for trunk/src/read_field.m


Ignore:
Timestamp:
Feb 27, 2013, 6:39:32 PM (11 years ago)
Author:
sommeria
Message:

various bugs corrected

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/read_field.m

    r538 r575  
    3636errormsg='';
    3737A=[];
     38InputField={};
     39check_colorvar=0;
    3840if isstruct(ParamIn)
    39     if isfield(ParamIn,'FieldName')&& ischar(ParamIn.FieldName)
    40         ParamIn.FieldName={ParamIn.FieldName};
     41    if isfield(ParamIn,'FieldName')
     42        if ischar(ParamIn.FieldName)
     43            ParamIn.FieldName={ParamIn.FieldName};
     44        else
     45            InputField= ParamIn.FieldName;
     46        end
    4147    end
    4248    if isfield(ParamIn,'ColorVar')
    4349        InputField=[ParamIn.FieldName {ParamIn.ColorVar}];
    4450        check_colorvar=1;
    45     else
    46         InputField= ParamIn.FieldName;
    47         check_colorvar=0;
    4851    end
    4952end
     53
    5054%% distingush different input file types
    5155switch FileType
Note: See TracChangeset for help on using the changeset viewer.