From: <mtm...@us...> - 2012-05-09 01:25:14
|
Revision: 10385 http://octave.svn.sourceforge.net/octave/?rev=10385&view=rev Author: mtmiller Date: 2012-05-09 01:25:06 +0000 (Wed, 09 May 2012) Log Message: ----------- blackmanharris: fix window symmetry Submitted by Mike Gross <mi...@ap...>, resubmitted by Daniel Sebald <dan...@ie...>. Closes artifact #3524658 Modified Paths: -------------- trunk/octave-forge/main/signal/inst/blackmanharris.m Modified: trunk/octave-forge/main/signal/inst/blackmanharris.m =================================================================== --- trunk/octave-forge/main/signal/inst/blackmanharris.m 2012-05-08 19:55:06 UTC (rev 10384) +++ trunk/octave-forge/main/signal/inst/blackmanharris.m 2012-05-09 01:25:06 UTC (rev 10385) @@ -31,6 +31,6 @@ a1 = 0.48829; a2 = 0.14128; a3 = 0.01168; - n = -ceil(N/2):N/2; - w = a0 + a1.*cos(2.*pi.*n./N) + a2.*cos(4.*pi.*n./N) + a3.*cos(6.*pi.*n./N); + n = 0:N; + w = a0 - a1.*cos(2.*pi.*n./N) + a2.*cos(4.*pi.*n./N) - a3.*cos(6.*pi.*n./N); endfunction This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |