CODE:
clc;
clear all;
a=input('Enter the values for numerator : ');
b=input('Enter the values for denomator : ');
t = tf(a,b,0.1) %give transfer function in Z domain
freqz(a,b); % give freq as well as phase response
OUTPUT:
Enter the values for numerator : [1 2 3]
Enter the values for denomator : [4 5 6]
Transfer function:
z^2 +
2 z + 3
---------------
4 z^2 + 5 z + 6
Sampling time: 0.1
0 comments:
Post a Comment