Generate Filters coeffitients using *.m file
Ältere Kommentare anzeigen
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 Kommentare
Jonas
am 7 Dez. 2022
h contains your filter coefficients, so what do you want exactly?
AndyK
am 7 Dez. 2022
Mathieu NOE
am 7 Dez. 2022
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);
Akzeptierte Antwort
Weitere Antworten (1)
Gerard Burjalès
am 7 Dez. 2022
1 Stimme
Just search for how to generate a C file
Kategorien
Mehr zu Digital Filter Design 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!