Computes power spectral density using welch's method
[P,c] = welch(x,N,M,wintype,nplot)
Input signal whose power spectral density (psd) is to be computed
Length of FFT
Length of the window
Type of the window
Option to display or suppress plotting psd
Computed power sepctrum density
correlation function of the power spectrum
It computes the power spectral density using Welch's method with 50 percent overlap. It uses three different types of windows as option for wintype parameter, 're', 'hn','hm' corresponding to Rectangular, Hanning and Hamming windows. The fifth input parameter nplot is used as a control to display or supress the power spectrum density plot. If the fifth parameter is present, it displays the power spectral density plot.