Ignore:
Timestamp:
Sep 22, 2017, 12:33:16 PM (7 years ago)
Author:
sommeria
Message:

multimask introduced

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/transform_field/signal_spectrum.m

    r977 r1010  
    11% 'signal_spectrum': calculate and display power spectrum of the current field
    22%  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.
    47%
    58% OUTPUT:
     
    9194        yindex=DataOut.TransformInput.IndexRange(2,:);
    9295        y=Data.(YName)(yindex);
     96        if size(DataOut.TransformInput.IndexRange,1)>=3
    9397        xindex=DataOut.TransformInput.IndexRange(3,:);
     98        else
     99            xindex=DataOut.TransformInput.IndexRange(2,:);
     100        end
    94101        x=Data.(XName)(xindex);
    95102        haxes=findobj(huvmat,'Tag','PlotAxes');
Note: See TracChangeset for help on using the changeset viewer.