# HG changeset patch # User John W. Eaton # Date 1286488098 14400 # Node ID f42f6fc27cc0dec6525c7e2accd1c64f4e2be024 # Parent af03ff97df7ba230d4fb91809bc9c317695421f5 periodogram.m: fix parse errors diff -r af03ff97df7b -r f42f6fc27cc0 scripts/ChangeLog --- a/scripts/ChangeLog Thu Oct 07 17:47:07 2010 -0400 +++ b/scripts/ChangeLog Thu Oct 07 17:48:18 2010 -0400 @@ -1,3 +1,7 @@ +2010-10-07 John W. Eaton + + * signal/periodogram.m: Fix parse errors. + 2010-10-07 John W. Eaton * time/datevec.m: Use endfunction to mark end of primary diff -r af03ff97df7b -r f42f6fc27cc0 scripts/signal/periodogram.m --- a/scripts/signal/periodogram.m Thu Oct 07 17:47:07 2010 -0400 +++ b/scripts/signal/periodogram.m Thu Oct 07 17:48:18 2010 -0400 @@ -136,7 +136,7 @@ Pxx = 0; rr = rem (length (x), nfft); if (rr) - x = [x(:);zeros (nfft-rr, 1)]; + x = [x(:); (zeros (nfft-rr, 1))]; end x = sum (reshape (x, nfft, []), 2); endif @@ -162,9 +162,9 @@ if (nargout != 1) if (range == 1) - f = (0:nfft/2)"/nfft; + f = (0:nfft/2)'/nfft; elseif (range == 2) - f = (0:nfft-1)"/nfft; + f = (0:nfft-1)'/nfft; endif if (nargin<4) f *= 2*pi; # generate w=2*pi*f