help with FiltFilt and entering coeff

조회 수: 2 (최근 30일)
David Ballantine
David Ballantine 2018년 4월 2일
댓글: Osman Atay Öztürk 2021년 9월 10일
Is there a video on how to enter filter coeff, I have these calculated but not sure how I enter them. I have calculated my Xabs but don't know how to to filter the signal using:
a(1)*y(n) = b(1)*x(n) + b(2)*x(n-1) + ... + b(nb+1)*x(n-nb) - a(2)*y(n-1) - ... - a(na+1)*y(n-na) a(1)*y(n) = b(1)*x(n) + b(2)*x(n-1) + ... + b(nb+1)*x(n-nb)
I don't want to use toolbox.
Thanks

답변 (1개)

Abhishek Ballaney
Abhishek Ballaney 2018년 4월 6일
https://in.mathworks.com/help/signal/ref/filtfilt.html
  댓글 수: 2
David Ballantine
David Ballantine 2018년 4월 7일
That’s not what I was looking for.
I have calculated the coeff of both a and b, I have 2 terms in A and 3 terms in B but I don’t know how to use these when using the filter(b,a, X).
Thanks
Osman Atay Öztürk
Osman Atay Öztürk 2021년 9월 10일
change the order of filter probably you used first order butterworth filter thats why you have 2 terms in A and B.
[b,a] = butter(N,Wn,'high');
Change N for changing order of butter filter.

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by