diff options
Diffstat (limited to '269/CH8/EX8.7/ex7.sce')
-rw-r--r-- | 269/CH8/EX8.7/ex7.sce | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/269/CH8/EX8.7/ex7.sce b/269/CH8/EX8.7/ex7.sce new file mode 100644 index 000000000..8ae3dee01 --- /dev/null +++ b/269/CH8/EX8.7/ex7.sce @@ -0,0 +1,25 @@ +s=%s
+Max_Limit = 10;
+h = ones(1,Max_Limit);
+N2 =0:length(h)-1;
+for t = 1: Max_Limit
+ x(t)= exp(-(t -1));
+end
+N1 =0:length(x)-1;
+y = convol(x,h)-1;
+N = 0:length(x)+ length(h)-2;
+figure
+a= gca();
+plot2d (N2 ,h)
+xtitle ( ' Impul s e Re spons e ' , ' t ' , ' h ( t ) ' );
+a. thickness = 2;
+figure
+a= gca ();
+plot2d (N1 ,x)
+xtitle ( ' Input Re spons e ' , ' t ' , ' x ( t ) ' );
+a. thickness = 2;
+figure
+a= gca ();
+plot2d (N(1: Max_Limit ),y (1: Max_Limit ))
+xtitle ( ' Output Re spons e ' , ' t ' , ' y ( t ) ' );
+a. thickness = 2;
|