Matlab program for Analog-to-Digital filter conversion. This program convert Analog Domain signal to Digital domain.
Matlab code
% Let Transfer function in Analog Domain is (s^2+2s+1)/(s^3+5s^2+11s+15)
clc; close all; clear all; b=[1,2,1];
a=[1,5,11,15];
[bz1, az1]=impinvar(b,a,fs); % Impulse invariance method
[bz2, az2]=impinvar(b,a,fs); % Bilinear transformation method
bz1 % Digital filter numerator coefficients for Impulse invariance method
az1 % Digital filterdenominator coefficients for Impulse invariance method
bz2 % Digital filter numerator coefficients for Bilinear transformation method
az2 % Digital filterdenominator coefficients for Bilinear transformation method
Command window
bz1 =
0.2000 -0.3130 0.1259
az1 =
1.0000 -2.0570 1.4980 -0.3679
bz2 =
0.2000 -0.3130 0.1259
az2 =
1.0000 -2.0570 1.4980 -0.3679
No comments:
Post a Comment