Question: Objective: This is an Octave based exercise. The objective of this exercise is to create two programs: ( i ) a function to determine the

Objective: This is an Octave based exercise. The objective of this exercise is to create two programs: (i)a function to determine the coefficients of the numerator and the denominator of H(z)for an IIR Bandpass filter designed through Bilinear Transformation technique, and (ii)a program that will call this function to extract specific frequency components from an input.Using octave. 1.Create a function with the following naming format: First Name_Last Name_IIR_BPF.There are three input arguments of the function: lower cutoff frequency (in Hertz),upper cutoff frequency (in Hertz),and sampling frequency (in Hertz).There are two output arguments of the filter: numerator coefficients (B)(a vector)and denominator coefficients (A)(a vector)of the transfer function H(z)of the IIR BPF.2.Derive the transfer function H(z)of a bandpass filter through Bilinear Transformation method in terms of variables. Once you have the transfer function, you can write the vectors B and A,which are the output arguments of the function. Note that you will have to convert the input arguments given in cyclic frequency (Hz)into angular frequency (rad/sec)when applying the BLT method. 3.Save your function in the same folder where you are going to save your main program that will be calling the function. 4.Now, create your main program with the naming format First Name_Last Name_Project7.Include your name, class, semester and date in the first line of the script file followed by a proper explanation of your program. Hence, the first few lines of your script file should be comments. 5.Clear all the variables (clear)and the command window through your program (clc).6.Generate 1024samples of the following signal with the sampling frequency of 2.5times the Nyquist rate. This is your input signal. x(t)=sin(16000*pi*t)+sin(48000*pi*t)+sin(96000*pi*t)7.Plot the first 200samples of the input signal versus time/This is figure 1.8.Calculate and plot the amplitude spectrum of the input signal (Fourier Trasnform)versus frequency in Hz.This is figure 2.Confirm that your spectrum contains three frequencies from the input signal.9.Now, create a bandpass filter to extract the 8KHz component of the input signal. Choose lower cutoff frequency to be 7.5KHz and upper cutoff to be 8.5KHz.Sampling rate is the same as the input signal. Call your function to get the filter coefficients. 10.Calculate and plot the magnitude response of the filter from the filter coefficients B and Ausing freqz function. Plot must be against frequency in Hertz. This is figure 3.11.Apply the designed bandpass filter on the input data using filter function. Plot the first 200points of the filtered output signal vs.time. This is figure 4.12.Calculate and plot the amplitude spectrum of the filtered signal (Fourier Trasnform)versus frequency in Hz.This is figure 5.Confirm that your spectrum contains the 8KHz frequency component. 13.Now repeat steps 9through 12to extract the 24KHz component from the input signal. Choose lower cutoff frequency to be 23.5KHz and upper cutoff to be 24.5KHz,and the same sampling rate as the input signal to create your filter through your function. You will have three more figures corresponding to steps 10through 12to show the magnitude response of the new filter (figure 6),filtered output (figure 7),and amplitude spectrum of the filter output to confirm the presence of only 24KHz component (figure 8)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Electrical Engineering Questions!