summaryrefslogtreecommitdiff
path: root/1592/CH7/EX7.11/Example_7_11.sce
diff options
context:
space:
mode:
Diffstat (limited to '1592/CH7/EX7.11/Example_7_11.sce')
-rwxr-xr-x1592/CH7/EX7.11/Example_7_11.sce31
1 files changed, 31 insertions, 0 deletions
diff --git a/1592/CH7/EX7.11/Example_7_11.sce b/1592/CH7/EX7.11/Example_7_11.sce
new file mode 100755
index 000000000..9510a506b
--- /dev/null
+++ b/1592/CH7/EX7.11/Example_7_11.sce
@@ -0,0 +1,31 @@
+//Scilab Code for Example 7.11 of Signals and systems by
+//P.Ramakrishna Rao
+clear;
+clc;
+clear x y n;
+x=[0,0,2,0,0];
+y=[0,0,1,1,0];
+n=-2:2;
+c = gca();
+c.y_location = "origin";
+c.x_location = "origin";
+plot2d2(n,x,2);
+title('x(t)')
+xlabel('t')
+figure(1);
+n=-2:2;
+c = gca();
+c.y_location = "origin";
+c.x_location = "origin";
+plot2d2(n,y,5);
+title('y(t)')
+xlabel('t')
+z=conv(x,y);
+figure(2);
+n=-3:5;
+c = gca();
+c.y_location = "origin";
+c.x_location = "origin";
+plot(n,z,2);
+title('Convoluted signal z(t)')
+xlabel('t')