Changeset 876 for trunk/src/transform_field
- Timestamp:
- Feb 22, 2015, 11:07:07 PM (10 years ago)
- Location:
- trunk/src/transform_field
- Files:
-
- 3 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 -
trunk/src/transform_field/signal_spectrum.m
r810 r876 1 % 'signal_spectrum': calculate and display spectrum of the current field1 % 'signal_spectrum': calculate and display power spectrum of the current field 2 2 % operate on a 1D signal or the first dimension of a higher dimensional matrix (then average over other dimensions) 3 3 % this function aplies the Welch method and call the function of the matlab signal processing toolbox -
trunk/src/transform_field/sub_field.m
r810 r876 1 %'sub_field': combines two input fields 1 %'sub_field': combines two input fields, taking the difference if of the same nature 2 2 % 3 % the two fields are subtstracted when of the same nature (scalar or 4 % vector), if the coordinates do not coincide, the second field is 5 % interpolated on the cooridintes of the first one 3 % the two fields are subtracted when of the same nature (scalar or 4 % vector),and defined at the same points 6 5 % 7 6 % when scalar and vectors are combined, the fields are just merged in a single matlab structure for common visualisation
Note: See TracChangeset
for help on using the changeset viewer.