Changeset 876 for trunk/src/transform_field/diff_vel.m
 Timestamp:
 Feb 22, 2015, 11:07:07 PM (10 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/src/transform_field/diff_vel.m
r870 r876 1 %' sub_field': combines two input fields1 %'diff_vel': calculate the difference of two input velocity fields. 2 2 % 3 % the two fields are subtstracted when of the same nature (scalar or4 % vector), if the coordinates do not coincide, the second field is5 % interpolated on the cooridintes of the first one6 % 7 % when scalar and vectors are combined, the fields are just merged in a single matlab structure for common visualisation 3 % the second velocity field is linearly interpolated 4 % (after elimination of the vectors marked with an error flag) to the positions of 5 % the first one before subtraction. The ancilary data of the first field 6 % are preserved while those of the second one are lost. 7 8 8 % 9 % function SubData= sub_field(Field,XmlData,Field_1)9 % function SubData=diff_vel(Field,XmlData,Field_1) 10 10 % 11 11 % OUPUT: … … 14 14 % INPUT: 15 15 % Field: matlab structure representing the first field 16 % XmlData: not used, needed for consistency with the call of transform fct. 16 17 % Field_1:matlab structure representing the second field 17 18
Note: See TracChangeset
for help on using the changeset viewer.