summaryrefslogtreecommitdiff
path: root/22/CH3/EX3.8/ch3ex8.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:38:01 +0530
committerprashantsinalkar2017-10-10 12:38:01 +0530
commitf35ea80659b6a49d1bb2ce1d7d002583f3f40947 (patch)
treeeb72842d800ac1233e9d890e020eac5fd41b0b1b /22/CH3/EX3.8/ch3ex8.sce
parent7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (diff)
downloadScilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.gz
Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.bz2
Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.zip
updated the code
Diffstat (limited to '22/CH3/EX3.8/ch3ex8.sce')
-rwxr-xr-x22/CH3/EX3.8/ch3ex8.sce36
1 files changed, 18 insertions, 18 deletions
diff --git a/22/CH3/EX3.8/ch3ex8.sce b/22/CH3/EX3.8/ch3ex8.sce
index cf7361f87..22e02d201 100755
--- a/22/CH3/EX3.8/ch3ex8.sce
+++ b/22/CH3/EX3.8/ch3ex8.sce
@@ -1,18 +1,18 @@
-//signals and systems
-//time domain analysis of discreet time systems
-//iterative solution
-clear;
-close;
-clc;
-n=(-1:10)';
-y=[16;0;zeros(length(n)-2,1)];
-x=[0;0;n(3:length(n))];
-for k=1:length(n)-1
- y(k+1)=0.5*y(k)+x(k+1);
-end;
-clf;
-size(y)
-size(n)
-plot2d3(n,y);
-plot(n,y,'r.')
-disp([msprintf([n,y])]);
+//signals and systems
+//time domain analysis of discreet time systems
+//iterative solution
+clear;
+close;
+clc;
+n=(-1:10)';
+y=[16;0;zeros(length(n)-2,1)];
+x=[0;0;n(3:length(n))];
+for k=1:length(n)-1
+ y(k+1)=0.5*y(k)+x(k+1);
+end;
+clf;
+size(y)
+size(n)
+plot2d3(n,y);
+plot(n,y,'r.')
+disp([msprintf('%d %d\n',[n,y])]); \ No newline at end of file