Help with Signal Processing Homework

Click For Summary
The discussion focuses on designing a low-pass analog filter using MATLAB routines and converting it into a digital IIR filter while adhering to specific performance specifications. Key challenges include understanding how to utilize the specbox.m routine to verify filter specifications and implementing a custom module for bilinear or spectral transformations. The user expresses confusion about testing the filter with a provided audio file and making frequency-related observations after filtering. Additionally, there is uncertainty regarding the method for finding the unit pulse response and the appropriate tests to verify filter functionality. Overall, the user seeks guidance on these complex signal processing tasks.
Jay_
Messages
181
Reaction score
0

Homework Statement



1. We need to design a low pass analog filter using anyone of the MATLAB routines: buttap,cheb1ap, cheb2ap,ellipap. Find analog filter's poles, zeros, and gain. Which would be the best to use and why?

2. Design a digital IIR from the analog filter with the following specs : Pass-band ripple : +/-0.005, Lower pass-band cutoff freq. : 0.115, upper pass-band cutoff freq : 0.325, stop-band ripple : -42 dB, lower stop-band cutoff frequency : 0.082, upper stop-band cutoff frequency : 0.365. I have to use bilinear or spectral transformations - I have to create my own module for this not use the MATLAB routines.

3. We have been given a specbox.m routine and we have to use THAT to see if the specifications given are satisfied.

4. We are given a wave file P.wav, we need to use "filter" MATLAB function to test the filter we made. After filtering we need to make "frequency related observations" after listening to the filtered sound. I have no idea how I am going to do that.

5. Convert my filter into a cascade by using zp2sos and repeat filtering the sound by creating a module that implements the fundamental (direct 1) signal flow graph implementation. Then what are the observations? I need to observe:

A. Do the two filtered signals sound differently?
B. What additional test would I need to use to verify the correct functionality of my filter?

6. I need to find the "unit pulse response" of the system by designing appropriate input/output test - comment on WHY I used this method, its advantages and disadvantages.

Homework Equations



function specbox(x1,x2,y1,y2,RGB)

%
% specbox(x1,x2,y1,y2,RGB)
%
% draws an RGB colored box using the given coordinates
% in the current figure
% RGB is a vector [r g b] with 3 values between 0 and 1
%
line(x1*[1 1],[y1 y2],'Color',RGB);
line(x2*[1 1],[y1 y2],'Color',RGB);
line([x1 x2],y1*[1 1],'Color',RGB);
line([x1 x2],y2*[1 1],'Color',RGB);

The Attempt at a Solution



I am using MATLAB for the first time in my life. And the previous project on this same subject I got very low grade. I haven't used any of the functions and I have trouble using them (I will try and find out though), but if anyone can help me it would be great. Thanks :) I think the first part - creating the analog filter is straightforward.

Particularly, I don't know how to use modules and all, and I am trying to learn but given the way specbox.m has been defined to us, how would I go about verifying the given specs for the filter using that? (question 3). And the second major difficulty I think would be choosing a test to find my unit impulse response (question 6)
 
Last edited:
Physics news on Phys.org
The buttap routine only allows me to put the order in the input arguments, how do I deal with the rest of the parameters?
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 6 ·
Replies
6
Views
5K
  • · Replies 14 ·
Replies
14
Views
4K
Replies
6
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K