Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

filtfilt result in 'NaN' numbers

363 views
Skip to first unread message

Bo

unread,
Jun 8, 2009, 1:13:02 PM6/8/09
to
I am trying to use filtfilt to implement a IIR bandpass filter and it gives me all 'NaN' numbers.

These guys are having the same problem as me:

http://the-moni-blog.blogspot.com/2008/06/last-week-i-found-myself-trying-to-deal.html

The input I use does not contain any NaNs, inf nor -infs. What is the problem? Anyone here has the same issue?

Thanks in advance.

Bo

Giuseppe Naselli

unread,
Mar 4, 2014, 6:17:11 AM3/4/14
to
"Bo " <qia...@gmail.com> wrote in message <h0jgqu$pn7$1...@fred.mathworks.com>...
Hi bo,

I am having the same problem, did you manage to solve it?

would you ike to share the solution/

Many thanks

G

Sean

unread,
Mar 5, 2014, 6:07:07 PM3/5/14
to
"Giuseppe Naselli" <giuseppe...@hotmail.com> wrote in message <lf4cnn$3dq$1...@newscl01ah.mathworks.com>...
I just had this problem and was looking to fix it. Turns out my original had a NaN entry.

Try this: all(isfinite(data))

0 means you have something in your data set thats NaN or INF

if you get a zero try data(isnan(data(:,1),:)=[]
0 new messages