help-octave
[Top][All Lists]
Advanced

[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)

Hello,

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
somewhere.
I'm using signal 1.3.0 with octave 3.8.2 MXE on a win 7 machine.

Many thanks in advance
Ingo



--
View this message in context: 
http://octave.1599824.n4.nabble.com/decimate-producing-NaN-tp4668286.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

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