Skip to content
Snippets Groups Projects
Commit a3af5161 authored by YE Victor's avatar YE Victor
Browse files

Upload New File

parent e2e676f4
No related branches found
No related tags found
No related merge requests found
clear; clc;
Fe = 44100;
K = 10;
N = 10000;
% Def de h_r(k)
hr = ones(1, K) / K;
% FFT de h_r
H = fft(hr, N);
H_mag = abs(H(1:N/2)) / max(abs(H)); % On normalise
H_db = 20 * log10(H_mag + eps); % dB
% Axe des fréquences en Hz
f = linspace(0, Fe/2, N/2);
% Affichage
figure;
plot(f, H_db, 'b', 'LineWidth', 1.5);
xlabel('Fréquence (Hz)');
ylabel('|H_r(f)| en dB');
title('Réponse en fréquence du filtre de retour h_r(k)');
grid on;
ylim([-60 5]);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment