From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 52/CH6/EX6.29/Example6_29.sce | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 52/CH6/EX6.29/Example6_29.sce (limited to '52/CH6/EX6.29') 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 -- cgit