How to plot frequency response at discrete time?

57 Ansichten (letzte 30 Tage)
SeokWon CHOI
SeokWon CHOI am 30 Mai 2021
Beantwortet: Mahesh Taparia am 4 Jun. 2021
I want to plot a frequency response ( z-transform)
How can I plot this graph?
Before asking to you, I tried to solve it by myself with the following code, but failed.
for example) H(z) = 1 + 0.5 exp(j*pi/4) * z^-1 ( H(e^jw) = 1+0.5exp(j*(pi/4-w)) )
>> t = linspace(-pi,pi);
>> x = 1+0.5*exp(j*(pi/4-t));
>> figure(1); plot(t,real(x)); grid on;

Antworten (1)

Mahesh Taparia
Mahesh Taparia am 4 Jun. 2021
Hi
You can use freqz function to plot frequency response at discrete time. You can refer this example to plot the response of your filter.
Hope it will help!

Community Treasure Hunt

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

Start Hunting!

Translated by