diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /52/CH6/EX6.29 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '52/CH6/EX6.29')
-rwxr-xr-x | 52/CH6/EX6.29/Example6_29.sce | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/52/CH6/EX6.29/Example6_29.sce b/52/CH6/EX6.29/Example6_29.sce new file mode 100755 index 000000000..79543fbdf --- /dev/null +++ b/52/CH6/EX6.29/Example6_29.sce @@ -0,0 +1,21 @@ +//Example 6.29
+//Program to calculate given FIR Filter's Lattice form coefficients.
+clear;
+clc ;
+close ;
+U=1; //Zero Adjust
+a(3+U,0+U)=1;
+a(3+U,1+U)=2/5;
+a(3+U,2+U)=3/4;
+a(3+U,3+U)=1/3;
+a(2+U,0+U)=1; //a(m,0)=1
+a(2+U,3+U)=1/3;
+m=3,k=1;
+a(m-1+U,k+U)=(a(m+U,k+U)-a(m+U,m+U)*a(m+U,m-k+U))/(1-a(m+U,m+U)*a(m+U,m+U));
+m=3,k=2;
+a(m-1+U,k+U)=(a(m+U,k+U)-a(m+U,m+U)*a(m+U,m-k+U))/(1-a(m+U,m+U)*a(m+U,m+U));
+m=2,k=1;
+a(m-1+U,k+U)=(a(m+U,k+U)-a(m+U,m+U)*a(m+U,m-k+U))/(1-a(m+U,m+U)*a(m+U,m+U));
+disp(a(1+U,1+U),'k1');
+disp(a(2+U,2+U),'k2');
+disp(a(3+U,3+U),'k3');
\ No newline at end of file |