The documentation does specify the use of a lot of arguments but I find it confusing at best. Some of the given syntax are:
pxx = pwelch(x,window,noverlap,nfft)
[pxx,f] = pwelch(x,window,noverlap,f,fs)
where fs is the sampling freq. Welch method (for finding the Power Spectral Density, PSD) divides an input signal of length N into K segments, each of length L and overlap D. It also uses a window. I'd like to know what syntax allows me to specify L, D, window, nfft (if needed), fs (if needed), and get an output like [pxx, f]. It seems this is not possible for some reason.