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

A
Ameer Hamza · Mar 23, 2024 · 2.3K views
Question
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');
Expert Answer
Profile picture of John Williams
John Williams PhD Expert
Answered Aug 13, 2026

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);

 

100% Run Guarantee 3-Hour Fast-Track Delivery

Need a Custom Version or Complete Simulation for This Problem?

Our 500+ PhD engineers build, debug, and optimize working MATLAB scripts and Simulink (.slx) models tailored to your exact assignment rubrics with zero plagiarism.

Tested on MATLAB R2024b / R2026a
Turnitin 0% Plagiarism Report
Free 7-Day Revisions Guarantee
Have a different question? Ask here

Get a Free Consultation or a Sample Assignment Review!