periodogram - Perform the periodogram of the signal x
Perform the periodogram of the signal x.
x=read('./demos/fgn',-1,1); x=x'; [I]=periodogram(x); scf; subplot(2,1,1);plot(x);xtitle('x'); lx=length(I); if (modulo(lx,2)==1) ind=-int(lx/2):int(lx/2); else ind=-int(lx/2):int(lx/2)-1; end subplot(2,1,2);plot2d(ind,fftshift(I));xtitle('Periodogram');