Question

Matlab: MUST SHOW ANSwER TYPED (copy & paste code or screenshot). DO NOT SUBMIT handwritten code, cannot read it.

Recursive Digital Filters:

7. Design a Chebyshev-I low-pass IIR digital low-pass filter of order 4 using cheby1, and make the corresponding graphs.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

MATLAB CODE

%% Low Pass Chebyshev Type I filter
clc
N=input('Enter Order of Low Pass Filer : ');
Rp=input('Enter Passband Gain of Low Pass Filer in dB : ');
Wp=input('Enter Passband Edge of Low Pass Filer '); % Cut off frequency
[b,a] = cheby1(N,Rp,Wp,'low')
freqz(b,a); % Frequency Response

[z,p,k] =cheby1(N,Rp,Wp,'low') % To know zeros (z) position ,poles position (p) and gain k
TF=tf(b,a,1000) % Transfer function for Sampling frequency 1000 Hz

Result:

Enter Order of Low Pass Filer : 20
Enter Passband Gain of Low Pass Filer in dB : 15
Enter Passband Edge of Low Pass Filer 0.4
b =
1.0e-04 *
Columns 1 through 12
0.0000 0.0000 0.0001 0.0007 0.0028 0.0090 0.0224 0.0448 0.0729 0.0972 0.1069 0.0972
Columns 13 through 21
0.0729 0.0448 0.0224 0.0090 0.0028 0.0007 0.0001 0.0000 0.0000
a =
1.0e+04 *
Columns 1 through 12
0.0001 -0.0012 0.0076 -0.0318 0.0994 -0.2461 0.4996 -0.8501 1.2297 -1.5256 1.6314 -1.5060
Columns 13 through 21
1.1981 -0.8174 0.4740 -0.2303 0.0918 -0.0290 0.0068 -0.0011 0.0001
z =
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
p =
0.9807 + 0.1122i
0.9807 - 0.1122i
0.9325 + 0.3257i
0.9325 - 0.3257i
0.8469 + 0.5105i
0.8469 - 0.5105i
0.7408 + 0.6572i
0.7408 - 0.6572i
0.6306 + 0.7656i
0.6306 - 0.7656i
0.5288 + 0.8411i
0.5288 - 0.8411i
0.3116 + 0.9495i
0.3116 - 0.9495i
0.3334 + 0.9406i
0.3334 - 0.9406i
0.3774 + 0.9223i
0.3774 - 0.9223i
0.4431 + 0.8910i
0.4431 - 0.8910i
k =
5.7847e-11

TF =


5.785e-11 z^20 + 1.157e-09 z^19 + 1.099e-08 z^18 + 6.595e-08 z^17 + 2.803e-07 z^16 + 8.969e-07 z^15

+ 2.242e-06 z^14 + 4.484e-06 z^13 + 7.287e-06 z^12 + 9.716e-06 z^11 + 1.069e-05 z^10 + 9.716e-06 z^9

+ 7.287e-06 z^8 + 4.484e-06 z^7 + 2.242e-06 z^6 + 8.969e-07 z^5 + 2.803e-07 z^4 + 6.595e   

-08 z^3 + 1.099e-08 z^2 + 1.157e-09 z + 5.785e-11   

-------------------------------------------------------------------------------------------------------------
  
z^20 - 12.25 z^19 + 76.27 z^18 - 318.3 z^17 + 994.3 z^16 - 2461 z^15 + 4996 z^14 - 8501 z^13 + 1.23e04 z^12
  
- 1.526e04 z^11 + 1.631e04 z^10 - 1.506e04 z^9 + 1.198e04 z^8 - 8174 z^7 + 4740 z^6 - 2303 z^5
  
+ 917.6 z^4 - 289.5 z^3 + 68.32 z^2 - 10.8 z + 0.866
  

Sample time: 1000 seconds
Discrete-time transfer function.

>>

plot:

Add a comment
Know the answer?
Add Answer to:
Matlab: MUST SHOW ANSwER TYPED (copy & paste code or screenshot). DO NOT SUBMIT handwritten code,...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • please answer all the question and print matlab code You need to design bandpass filter with lower cutoff freq. of 1000Hz and upper cutoff freq. of 3000Hz. Sampling freq. 10000Hz. Plot the freq. respo...

    please answer all the question and print matlab code You need to design bandpass filter with lower cutoff freq. of 1000Hz and upper cutoff freq. of 3000Hz. Sampling freq. 10000Hz. Plot the freq. response in DB .Use MATLAB as needed a) FIR with Hamming window at least 7 taps b) IIR using Bilinear Transformation method not more than 2end order. c) Compare the frequency response “freqz” plots and which method you recommend and why? 2 graphs on this part. d)...

  • Please answer using Matlab Software. Also please show the graphs in Matlab along with the Matlab ...

    Please answer using Matlab Software. Also please show the graphs in Matlab along with the Matlab Code. Thank you! Part 1 Review the theoretical derivations of the amplitude and phase response of an RC low pass filter at the end of the assignment; Review the Matlab example 4-1 included at the end of the assignment; it includes the Matlab directions on how to plot the amplitude response considered above. The plot in the Matlab example displays 2 decades of normalized...

  • using Java program please copy and paste the code don't screenshot it import java.util.Scanner; import java.io.File;...

    using Java program please copy and paste the code don't screenshot it import java.util.Scanner; import java.io.File; public class { public static void main(String[] args) { // Create a new Scanner object to obtain // input from System.in // --> TODO // Ask user for a word to search for. Print // out a prompt // --> TODO // Use the Scanner object you created above to // take a word of input from the user. // --> TODO // ***...

  • Nay programming languge is fine (MatLab, Octave, etc.) This is the whole document this last picture...

    Nay programming languge is fine (MatLab, Octave, etc.) This is the whole document this last picture i sent is the first page 5. Write and save a function Sphere Area that accepts Radius as input argument, and returns SurfaceArea (4 tt r) as output argument. Paste the function code below. Paste code here 6. Validate your Sphere Area function from the command line, checking the results against hand calculations. Paste the command line code and results below. 7. Design an...

  • Must Follow Example code //Add name, date, and description here //preprocessor directives #de fine CRT SECURE...

    Must Follow Example code //Add name, date, and description here //preprocessor directives #de fine CRT SECURE NO WARNINGS #includestdio.h> - //Calculate the cost of the gas on a trip /Ideclare, ask, and get the price per gallon and the mpg /Icalculate and return (by reference) the cost of gas for the number of miles passed to the function void GasCost (double miles, double *gasTotalPtr) //using a 70 MPH speed limit and the miles passed to the function //calculate and return...

  • Using Merge Sort: (In Java) (Please screenshot or copy your output file in the answer) In...

    Using Merge Sort: (In Java) (Please screenshot or copy your output file in the answer) In this project, we combine the concepts of Recursion and Merge Sorting. Please note that the focus of this project is on Merging and don't forget the following constraint: Programming Steps: 1) Create a class called Art that implements Comparable interface. 2) Read part of the file and use Merge Sort to sort the array of Art and then write them to a file. 3)...

  • Prepare a design for the Baby Block Robot. The design should be in flow diagram form....

    Prepare a design for the Baby Block Robot. The design should be in flow diagram form. This diagram should help you identify the sequence of steps needed to solve specific situations that the robot will encounter. Be specific. Break down the actions into small steps. Test you design by using example block sequences. Think it through. I would expect the diagram to require multiple pages. If you have a program that supports flow diagrams, like PowerPoint, then use that. Hand...

  • A company has received an order to manufacture 75 customized units of an entertainment cabinet. The...

    A company has received an order to manufacture 75 customized units of an entertainment cabinet. The company is being offered $960 per cabinet and the CEO must decide whether or not to accept the order. An analysis of the production process for the cabinet reveals that a new, special-purpose lathe will be required. The estimated cost of the lathe is $14,400, although there is some uncertainty due to new tariffs. The variable cost is more difficult to estimate because the...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT