Changeset 575 for trunk/src/read_field.m
- Timestamp:
- Feb 27, 2013, 6:39:32 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/read_field.m
r538 r575 36 36 errormsg=''; 37 37 A=[]; 38 InputField={}; 39 check_colorvar=0; 38 40 if 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 41 47 end 42 48 if isfield(ParamIn,'ColorVar') 43 49 InputField=[ParamIn.FieldName {ParamIn.ColorVar}]; 44 50 check_colorvar=1; 45 else46 InputField= ParamIn.FieldName;47 check_colorvar=0;48 51 end 49 52 end 53 50 54 %% distingush different input file types 51 55 switch FileType
Note: See TracChangeset
for help on using the changeset viewer.