3. For the following analog signal:
xa(t) = 3sin(40Ï€t) + 3cos(50Ï€t)
which is sampled at a rate of 100 samples/second.
a. Design an IIR digital filter that will pass the firstcomponent 3sin(40Ï€t) with attenuation of
less than 1 dB and suppress the second component 3cos(50Ï€t) atleast 50 dB. The filter should be
monotonic in the passband and have ripple in the stopband.
b. Generate 500 samples of the sampled signal xa(t)at the given sampling rate and use the
filter you designed to process the sampled signal using MATLAB’s\"filter\" command.
c. Plot the original signal and the output signal in one windowusing MATLAB’s subplot
command ( in either a 1 X 2 arrangement or a 2 X 1 arrangement.Remember to title all plots and
label all axes.
Please include Matlab code. EVEN JUST PART AHELPS