summaryrefslogtreecommitdiff
path: root/22/CH3
diff options
context:
space:
mode:
Diffstat (limited to '22/CH3')
-rwxr-xr-x22/CH3/EX3.8/ch3ex8.sce36
-rwxr-xr-x22/CH3/EX3.9/ch3ex9.sce30
2 files changed, 33 insertions, 33 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
diff --git a/22/CH3/EX3.9/ch3ex9.sce b/22/CH3/EX3.9/ch3ex9.sce
index b651f07e0..3acc5cb3e 100755
--- a/22/CH3/EX3.9/ch3ex9.sce
+++ b/22/CH3/EX3.9/ch3ex9.sce
@@ -1,15 +1,15 @@
-//signals and systems
-//time domain analysis of discreet time systems
-//iterative solution
-clear;
-close;
-clc;
-n=(-2:10)';
-y=[1;2;zeros(length(n)-2,1)];
-x=[0;0;n(3:length(n))];
-for k=1:length(n)-2
- y(k+2)=y(k+1)-0.24*y(k)+x(k+2)-2*x(k+1);
-end;
-clf;
-plot2d3(n,y);
-disp([msprintf([n,y])]);
+//signals and systems
+//time domain analysis of discreet time systems
+//iterative solution
+clear;
+close;
+clc;
+n=(-2:10)';
+y=[1;2;zeros(length(n)-2,1)];
+x=[0;0;n(3:length(n))];
+for k=1:length(n)-2
+ y(k+2)=y(k+1)-0.24*y(k)+x(k+2)-2*x(k+1);
+end;
+clf;
+plot2d3(n,y);
+disp([msprintf('%d %d\n',[n,y])]); \ No newline at end of file