powspectwelch

Calculates the Welch'h spectral density of the signal with overlapped averaged segments. Second argument options (type of window to use):'rectangular', 'hanning', 'welch', 'parzen', 'bartlett', 'hamming','exponential', 'riemann', 'blackmanharris', 'nuttall'.

Arguments

  1. Input signal vector x.
  2. String, window type.
  3. Positive integer value higher than 4, result vector size.
  4. Positive integer value, segment length.
  5. Positive integer value, number of overlapped samples.

Output

Result vector

Examples

powspectwelch