How to plot frequency response, phase response from transfer function
10 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos

How to plot frequency response, phase response, and pole-zero plot using mathlab
5 comentarios
Respuestas (1)
Sam Chak
el 8 de Jul. de 2022
Thanks for link. I used the code and it works. Now, try yours.
z = tf('z',-1);
H = tf((0.0534*(1+z^-1)*(1-10166*z^-1 + z^-2))/((1-0.683*z^-1)*(1-1.4461*z^-1+0.7957*z^-2)))
H.Variable = 'z^-1'
num_zinv = H.Numerator{:}
den_zinv = H.Denominator{:}
figure
freqz(num_zinv, den_zinv, 2^14)
11 comentarios
Sam Chak
el 9 de Jul. de 2022
It's good to hear that it works out. You can actually copy and paste the entire MATLAB code to the Editor and Run (click on the green Play button) the program from there. f you find this mini tutorial is helpful, please consider accepting ✔ and voting 👍 the Answer. You are encouraged to complete the MATLAB Onramp Tutorial for Beginners.

Paul
el 9 de Jul. de 2022
Another option that might be easier to enter if less visually appealing at the command line:
H = tf([1 2 1],[3.1414 0 0.585],-1,'Variable','z^-1')
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


