Low pass filter returns NAN
Ältere Kommentare anzeigen
hi, I'm trying to use a Low pass filter for my signal data. I have following code for the same
CutF = 25
step = 0.001
fNorm=CutF/(1/(2*step));
[b,a]=butter(10,fNorm,'low');
C1=filtfilt(b,a,Data(:,(i-1)*6+1));
Now this works for some of my data set but for some it returns NAN. I cant figure out why it works in some case and not in others.
thanks in advance
2 Kommentare
Honglei Chen
am 25 Jun. 2012
Did you check if your input contains NaN?
the cyclist
am 25 Jun. 2012
Would it be possible for you to include a very small example of "Data" that will allow us to run your code, and exhibits the problem?
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Multirate Signal Processing finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!