Help with filtering a signal

조회 수: 10 (최근 30일)
NAS
NAS 2019년 6월 12일
댓글: NAS 2019년 7월 12일
I am trying to filter a signal that is imported though by a txt file and I am getting an error. The signal has a sampling frequency of 1000.
data = importdata('data.txt');
fs = 1000;
R = data.data(:,1);
my_filt(R,50, 1000, 1)
Error using filtfilt
Expected input to be finite.
Error in filtfilt>efiltfilt (line 114)
validateattributes(x,{'double'},{'finite','nonempty'},'filtfilt');
Error in filtfilt (line 89)
y=efiltfilt(b,a,x);
Error in my_filt (line 30)
smoothed_data=filtfilt(B,A,raw_data);
Thanks!
  댓글 수: 4
Walter Roberson
Walter Roberson 2019년 6월 12일
find(~isfinite(R))
NAS
NAS 2019년 7월 12일
Thanks!

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Digital Filtering에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by