how to get z-transform expression along with the curve of this function

2 vues (au cours des 30 derniers jours)
Gaurav Sharma
Gaurav Sharma le 12 Oct 2018
Commenté : Gaurav Sharma le 12 Oct 2018
I am getting the plot for this function. But i want to show the H(z) of this butterworth lowpass filter. Can You pls help me with this!

Réponses (1)

Dimitris Kalogiros
Dimitris Kalogiros le 12 Oct 2018
Try this:
clear; clc;
fc=500; %Hz;
fs=2000; %Hz;
n=4; % filter order
[b,a] = butter(n ,fc/(fs/2));
freqz(b,a);
You should get:
  1 commentaire
Gaurav Sharma
Gaurav Sharma le 12 Oct 2018
sorry man but it didnt work. But anyway, I figured it out: use filt(b,a) you will get the z trans. expression

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by