blob: 15675f55101c3e0141524d95a0133ee65b2e7332 (
plain)
1
2
3
4
5
6
7
8
9
10
|
//Example 8.1
clc;clear;close;
s=poly(0,'s');
z=poly(0,'z');
T=1;
Hs=1/(s+2);
Hz=horner(Hs,(1-1/z)/T);
disp('Using Backward difference formula for derivative:')
disp(Hs,'H(s)=');
disp(Hz,'H(z)=');
|