In the Octave-Forge package "signal", the "nuttallwin.m" file has the wrong
window coefficients.
Beginning on line 35, it should be:
a0 = 0.355768;
a1 = 0.487396;
a2 = 0.144232;
a3 = 0.012604;
I got these correct coefficients from Wikipedia. See here:
http://en.wikipedia.org/wiki/Window_function#Nuttall_window.2C_continuous_first_derivative
Once I modified the file manually, the window function seems to produce the
right results. The (incorrect) coefficients were the same ones from the
"blackmannuttall.m" file, so I think it was probably a copy-paste error or
something.
- Erik
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev