[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

decimate producing NaN

From: inor0627
Subject: decimate producing NaN
Date: Tue, 27 Jan 2015 06:54:49 -0800 (PST)


I was trying to reduce a large dataset for plotting with external program.
When using decimate from the signal package for this purpose, the ouput
vector contains unexpected NaN. Additionally the number of NaN seems to be
some kind of random. MWE:

>> sum(isnan(decimate(1:125000,184)))
ans =  680
>> sum(isnan(decimate(1:125000,185)))
ans =  397
>> sum(isnan(decimate(1:125000,186)))
ans =  673

As the code above works as expected in Matlab 2012a, I wonder if I misused
decimate or if the observed behaviour is a bug that I should report
I'm using signal 1.3.0 with octave 3.8.2 MXE on a win 7 machine.

Many thanks in advance

View this message in context:
Sent from the Octave - General mailing list archive at

reply via email to

[Prev in Thread] Current Thread [Next in Thread]