blackman and flattopwin cannot be used with pwelch
Francesco Potorti`
Potorti at isti.cnr.it
Tue Feb 5 03:21:38 CST 2008
>> pwelch.m as distributed in the signal package of octave-forge does not
>> accept a window with negative values. However, blackman(4096) and
>> flattopwin(4096) generate negative values.
>>
>> I suspect that as far as blackman is concerned, it is just a rounding
>> error, but flattopwin definitely generates negative values.
>>
>Could you propose a fix?
I fixed it in my copy by simply removing the check on windows' negative
values. If you want, I can update the doc strings, too. It is a very
quick fix.
--
Francesco Potortì (ricercatore) Voice: +39 050 315 3058 (op.2111)
ISTI - Area della ricerca CNR Fax: +39 050 315 2040
via G. Moruzzi 1, I-56124 Pisa Email: Potorti at isti.cnr.it
Web: http://fly.isti.cnr.it/ Key: fly.isti.cnr.it/public.key
More information about the Bug-octave
mailing list