diff options
Diffstat (limited to '3812/CH2/EX2.20/2_20.sce')
-rw-r--r-- | 3812/CH2/EX2.20/2_20.sce | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/3812/CH2/EX2.20/2_20.sce b/3812/CH2/EX2.20/2_20.sce new file mode 100644 index 000000000..56b71374a --- /dev/null +++ b/3812/CH2/EX2.20/2_20.sce @@ -0,0 +1,24 @@ +//Example 2_20
+//determine step response of the LTI system
+clc;
+n=-8:1/1000:8;
+for i=1:length(n)
+if n(i)>=0 then
+x(i)=1;
+h(i)=n(i);
+else
+x(i)=0
+h(i)=0;
+end
+end
+y=convol(x,h);
+figure
+plot2d3(n,h);
+title('Impulse responce');
+figure
+plot2d3(n,x);
+title('Input signal');
+figure
+n1=-16:1/1000:16
+plot2d3(n1,y);
+title('Output signal');
|