Changeset 1135 for trunk/src/read_civdata.m
- Timestamp:
- Apr 23, 2024, 3:03:38 PM (6 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/read_civdata.m
r1127 r1135 32 32 % FileName: file name (string). 33 33 % FieldNames =cell of field names to get, which can contain the strings: 34 % 'ima_cor': image correlation, vec_c or vec2_C 35 % 'vort','div','strain': requires velocity derivatives DUDX... 36 % 'error': error estimate (vec_E or vec2_E) 37 % 34 % 'U','V','norm(U,V)','curl(U,V)','div(U,V)','strain(U,V)' 38 35 % VelType : character string indicating the types of velocity fields to read ('civ1','civ2'...) 39 36 % if vel_type=[] or'*', a priority choice, given by vel_type_out{1,2}, is done depending … … 68 65 VelType=''; 69 66 end 70 if ise qual(VelType,'*')67 if isempty(VelType)||strcmp(VelType,'*') 71 68 VelType=''; 72 69 end 73 if isempty(VelType)74 VelType='';75 end76 70 if ~exist('FieldNames','var') 77 FieldNames= []; %default71 FieldNames={}; %default 78 72 end 79 73 Field=[]; … … 194 188 195 189 %% default input values 196 if ~exist('vel_type','var'),vel_type='';end ;197 if iscell(vel_type),vel_type=vel_type{1}; end ;%transform cell to string if needed190 if ~exist('vel_type','var'),vel_type='';end 191 if iscell(vel_type),vel_type=vel_type{1}; end%transform cell to string if needed 198 192 errormsg=''; 199 193
Note: See TracChangeset
for help on using the changeset viewer.