Plotting magnitude of frequency response of the system

14 views (last 30 days)
Muhammad Ali
Muhammad Ali on 30 Oct 2020
Commented: Muhammad Ali on 30 Oct 2020
I want to plot magnitude resonse of this system
I have written the following code for this:
num = [0 2 1];
den = [1 3 2];
[h,w] = freqz(num,den);
grid ON;
I got this plot:
how can I verify that this is right plot. Can anyone verify that please.

Answers (1)

Ameer Hamza
Ameer Hamza on 30 Oct 2020
freqz only works for a discrete-time system. Your system is a continuous time. You will need to use freqresp as you did in your other question here:

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!