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: ia function to determine the coefficients of the numerator and the denominator of Hzfor an IIR Bandpass filter designed through Bilinear Transformation technique, and iia program that will call this function to extract specific frequency components from an input.Using octave. Create a function with the following naming format: First NameLast NameIIRBPFThere are three input arguments of the function: lower cutoff frequency in Hertzupper cutoff frequency in Hertzand sampling frequency in HertzThere are two output arguments of the filter: numerator coefficients Ba vectorand denominator coefficients Aa vectorof the transfer function Hzof the IIR BPFDerive the transfer function Hzof a bandpass filter through Bilinear Transformation method in terms of variables. Once you have the transfer function, you can write the vectors B and Awhich are the output arguments of the function. Note that you will have to convert the input arguments given in cyclic frequency Hzinto angular frequency radsecwhen applying the BLT method. Save your function in the same folder where you are going to save your main program that will be calling the function. Now create your main program with the naming format First NameLast NameProjectInclude 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. Clear all the variables clearand the command window through your program clcGenerate samples of the following signal with the sampling frequency of times the Nyquist rate. This is your input signal. xtsinpitsinpitsinpitPlot the first samples of the input signal versus timeThis is figure Calculate and plot the amplitude spectrum of the input signal Fourier Trasnformversus frequency in HzThis is figure Confirm that your spectrum contains three frequencies from the input signalNow create a bandpass filter to extract the KHz component of the input signal. Choose lower cutoff frequency to be KHz and upper cutoff to be KHzSampling rate is the same as the input signal. Call your function to get the filter coefficients. 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 Apply the designed bandpass filter on the input data using filter function. Plot the first points of the filtered output signal vstime This is figure Calculate and plot the amplitude spectrum of the filtered signal Fourier Trasnformversus frequency in HzThis is figure Confirm that your spectrum contains the KHz frequency component. Now repeat steps through to extract the KHz component from the input signal. Choose lower cutoff frequency to be KHz and upper cutoff to be KHzand the same sampling rate as the input signal to create your filter through your function. You will have three more figures corresponding to steps through to show the magnitude response of the new filter figure filtered output figure and amplitude spectrum of the filter output to confirm the presence of only KHz component figure
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
