Changeset 1010 for trunk/src/transform_field
 Timestamp:
 Sep 22, 2017, 12:33:16 PM (6 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/src/transform_field/signal_spectrum.m
r977 r1010 1 1 % '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 % this function aplies the Welch method and call the function of the matlab signal processing toolbox 3 % this function aplies the Welch method and calls the function of the matlab signal processing toolbox 4 % it calculates also the cospectrum with the signal shifted by one 5 % index, to remove noise effects assumed uncorrelated from one iteration to 6 % the next. 4 7 % 5 8 % OUTPUT: … … 91 94 yindex=DataOut.TransformInput.IndexRange(2,:); 92 95 y=Data.(YName)(yindex); 96 if size(DataOut.TransformInput.IndexRange,1)>=3 93 97 xindex=DataOut.TransformInput.IndexRange(3,:); 98 else 99 xindex=DataOut.TransformInput.IndexRange(2,:); 100 end 94 101 x=Data.(XName)(xindex); 95 102 haxes=findobj(huvmat,'Tag','PlotAxes');
Note: See TracChangeset
for help on using the changeset viewer.