Problem 4 ..... you can use Matlab
Using the same initial code fragment as in Problem 1, add codethat calculates and plays y (n)=h(n)?x (n) where h(n) is theimpulse response of an IIR bandstop filter with band edgefrequencies 750 Hz and 850 Hz and based on a 4th order Butterworthprototype. Name your program p3.sce
the below is the Problem 1 initail code .. you can use itMatlab
The following cilab code generates a 10-second “chirp” withdiscrete frequencies ranging from 0 to 0.2 with a samplingfrequency of 8 kHz.
clear; Fs = 8000; Nbits = 16; tMax = 10; N = Fs*tMax+1; f =linspace(0.0,0.2,N); x = zeros(f); phi = 0; for n=0:N-1 x(n+1) =0.8*sin(phi); phi = phi+2*%pi*f(n+1); end sound(x,Fs,Nbits);sleep(10000); //allows full sound to play