summaryrefslogtreecommitdiff
path: root/269/CH8/EX8.7
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /269/CH8/EX8.7
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '269/CH8/EX8.7')
-rw-r--r--269/CH8/EX8.7/ex7.sce25
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;