[Pxx,f] = periodogram(x,window,nfft,fs,'range') or
[Pxx,w] = periodogram(x,window,nfft,'range') specifies the range of frequency values to include in f or w. This syntax is useful when x is real.
'range' can be either: 'twosided': Compute the two-sided PSD over the frequency range [0,fs). This is the default for determining the frequency range for complex-valued x.
If you specify fs as the empty vector, [], the frequency range is [0,1).
If you don't specify fs, the frequency range is [0, 2pi).
'onesided': Compute the one-sided PSD over the frequency ranges specified for real x. This is the default for determining the frequency range for real-valued x.