plot_cpsd

Cross-power spectral density plotting utility

Syntax

   plot_cpsd(S,leg,fs,frange,auto)

Arguments

See also Common variable names and data structures.

input

   S          matrix of cpsd matrices
   leg        cell vector of legend strings matching S (default: 'cpsd 1', 'cpsd 2', etc.)
   fs         sample rate in Hz (default: normalised freq as per routine 'sfreqs')
   frange     frequency range to plot: empty for all (default) else an ascending 2-vector
   auto       only plot auto- (not cross-) spectra (default: true)

Description

Plots multiple cpsds vs. frequency on a grid. (Sn, lstrn) specify (cpsd, legend) pairs. If the auto flag is set only auto-spectra are plotted.

See also

var_to_cpsd | autocov_to_cpsd | tsdata_to_cpsd | mvgc_demo_stats | sfreqs