MATLAB. Design your own low-pass shelving filter which can boost
the low frequency of given music signal. After designing filter,
apply the filter to the original music signal and observe the
result. Include following plots.
A. Magnitude and phase plot of your filter.
B. Magnitude plot of original signal
C. Magnitude plot of filtered signal
MATLAB CODE
close all,
clear all,
clc,
ProjectPath = pwd;
MusicSignal_ = strcat(ProjectPath,'\Sample.wav');
[x, Fs, nbits] = wavread(MusicSignal_);
subplot(1,2,1); plot(x);
title('Original Music Signal Magnitude Plot');
%soundsc(y,Fs);
grid on,
Fc=200; %Cut off Freq in Hz
Order=2;
Wn = Fc/(Fs/2);
b = fir1(Order,Wn,'low'); hd = dfilt.dffir(b);
y = filter(hd,x);
subplot(1,2,2); plot(y); grid on, ylim([-3,3]);
str = strcat('Filtered InputSignal, Fc = ',num2str(Fc),' Hz');
title(str);
figure,
freqz(b,1,512);
Get Answers For Free
Most questions answered within 1 hours.