diff options
Diffstat (limited to '22/CH3/EX3.9/ch3ex9.sce')
-rwxr-xr-x | 22/CH3/EX3.9/ch3ex9.sce | 30 |
1 files changed, 15 insertions, 15 deletions
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 |