How can I apply a designed Low pass filter on an audio file ?

3 ビュー (過去 30 日間)
Han
Han 2018 年 5 月 9 日
回答済み: Ameer Hamza 2018 年 5 月 9 日
i have a designed Low pass filter
i want to apply this low pass filter on an audio file
How can i do ?
i only know that i can use [y,Fs] = audioread('XXX.wav');

採用された回答

Ameer Hamza
Ameer Hamza 2018 年 5 月 9 日
You can use Control system approach to filter this signal as follow
[data, fs] = audioread('sample.wav');
T = 1/fs;
t = (0:size(data,1)-1)'*T; % get time of samples;
filter = tf(18181818, [1 9090.9090909090 18181818.181818]);
channel1_filtered = lsim(filter, data(:,1), t);
channel2_filtered = lsim(filter, data(:,2), t);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAudio Processing Algorithm Design についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by