DIGITIZING AN ANALOG FILTER TO DIGITAL FILTER USING BILINEAR TRANSFORMATION METHOD
Here is a simple matlab code to digitize an anlog filter to a digial filter using bilinear transformation method, which is most commonly used technique.
The tranformation is achieved by the use of 'bilinear' function available in MATLAB toolset. It gets the analog filter co-effs & returns the digital filter co-eff.
PROGRAM:
clc;
clear all;
b=input('enter the analog numerator:');
a=input('enter the analog denominator:');
fs=1;
[bz,az]=bilinear(b,a,fs);
disp('num coeff');
disp(bz);
disp('deno coeff');
disp(az);
OUTPUT:
enter the analog numerator:8
enter the analog denominator:[6 4]
num coeff
0.5000 0.5000
deno coeff
1.0000 ‐0.5000
0 comments:
Post a Comment