blackman and flattopwin cannot be used with pwelch
David Bateman
David.Bateman at motorola.com
Tue Feb 5 03:25:58 CST 2008
Francesco Potorti` wrote:
>>> 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.
>
>
Sure, that would be good.
D.
--
David Bateman David.Bateman at motorola.com
Motorola Labs - Paris +33 1 69 35 48 04 (Ph)
Parc Les Algorithmes, Commune de St Aubin +33 6 72 01 06 33 (Mob)
91193 Gif-Sur-Yvette FRANCE +33 1 69 35 77 01 (Fax)
The information contained in this communication has been classified as:
[x] General Business Information
[ ] Motorola Internal Use Only
[ ] Motorola Confidential Proprietary
More information about the Bug-octave
mailing list