Spectral Analysis |
coherence(vx, vy, n, r, [w]) Returns the coherence of vectors vx and vy. The signal vectors are divided into n overlapping intervals with fraction of overlap r. Each data segment is windowed with taper w.
cspectrum(vx, vy, n, r, [w]) Returns the cross spectrum of the vectors vx and vy. The signal vectors are divided into n overlapping intervals with fraction of overlap r. Each data segment is windowed with taper w.
pspectrum(v, n, r, [w]) Returns the power spectrum of v, computed by dividing v into n overlapping segments with overlap fraction r. Each data segment is windowed with taper w.
snr(vx, vy, n, r, [w]) Returns the signal-to-noise ratio for vx and vy. The signal vectors are divided into n overlapping segments with fraction of overlap r. Each data segment is windowed with taper w.
w (optional) is an integer representing a windowing function. A rectangular window is used if w is omitted. The following table shows values for w and the windows they correspond to:
Value of w |
Window |
1 |
rectangular |
2 |
tapered rectangular |
3 |
triangular |
4 |
Hanning |
5 |
Hamming |
6 |
Blackman |
7 |
Nuttall |