Generate Filters coeffitients using *.m file
조회 수: 3 (최근 30일)
이전 댓글 표시
I have made a FIR filter without filterDesigner tool
Fs = 48000; % Sampling rate
T = 1/Fs;
L = 320;
t = (0:L-1)*T;
x = sin(2*pi*1000*t) + 0.5*sin(2*pi*15000*t);
h = fir1(28, 6/24);
y = filter (h, (1), x);
How can I generate the list of filter coeffitients?
Or I should convert it somehow to *.fda file (don't know)?
댓글 수: 3
Mathieu NOE
2022년 12월 7일
your code works fine
what's the problem ?

Fs = 48000; % Sampling rate
T = 1/Fs;
L = 320;
t = (0:L-1)*T;
x = sin(2*pi*1000*t) + 0.5*sin(2*pi*15000*t);
h = fir1(28, 6/24);
y = filter(h,1,x);
plot(t,x,t,y);
채택된 답변
Star Strider
2022년 12월 7일
If I understand your question correctly, the filter coefficients are the ‘h’ vector.
댓글 수: 0
추가 답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Digital and Analog Filters에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!