fn_spectrogram
Contents
Syntax
[y freqs yticklog yticklabel] = fn_spectrogram(x,dt[,freqscaling][,freqs]) fn_spectrogram(['display',]y,dt|tt,freqs,yticklog,yticklabel[,freqscaling][,clip])
Description
This is a wrapper of Matlab Wavelet Toolbox 'cwtft' function to do time-frequency analysis. The second function form is a utility to display the result.
Input
- x ND array - signals: first dimension is time, second dimension is
repetition (spectrograms will be averaged along this dimension),
additional dimensions correspond to different conditions and will
not lead to averaging
cell array can be used as well for different conditions having
different numbers of repetitions each
- dt scalar - time bin in second
- freqscaling function with prototype @(f)fun(f), or a char, e.g.
'f', or 'sqrt(f)' - indicates how to rescale the data
frequency-by-frequency [default: no rescale]Source
Thomas Deneux
Copyright 2015-2017