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

조회 수: 2 (최근 30일)
Gaurav Sharma
Gaurav Sharma 2018년 10월 12일
댓글: Gaurav Sharma 2018년 10월 12일
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!

답변 (1개)

Dimitris Kalogiros
Dimitris Kalogiros 2018년 10월 12일
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
Gaurav Sharma
Gaurav Sharma 2018년 10월 12일
sorry man but it didnt work. But anyway, I figured it out: use filt(b,a) you will get the z trans. expression

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

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

Start Hunting!

Translated by