summaryrefslogtreecommitdiff
path: root/758/CH1
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /758/CH1
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '758/CH1')
-rwxr-xr-x758/CH1/EX1.2.a/Ex_1_2_a.sce6
-rwxr-xr-x758/CH1/EX1.2.b/Ex_1_2_b.sce6
-rwxr-xr-x758/CH1/EX1.2.c/Ex_1_2_c.sce7
-rwxr-xr-x758/CH1/EX1.2.d/Ex_1_2_d.sce8
4 files changed, 27 insertions, 0 deletions
diff --git a/758/CH1/EX1.2.a/Ex_1_2_a.sce b/758/CH1/EX1.2.a/Ex_1_2_a.sce
new file mode 100755
index 000000000..495e18206
--- /dev/null
+++ b/758/CH1/EX1.2.a/Ex_1_2_a.sce
@@ -0,0 +1,6 @@
+//Example 1.2 (a)
+clc;clear;
+t=-5:0.01:5;
+x=1*(abs(2*t+3)<0.5);
+plot(t,x);
+title('x(t)=rect(2t+3)'); \ No newline at end of file
diff --git a/758/CH1/EX1.2.b/Ex_1_2_b.sce b/758/CH1/EX1.2.b/Ex_1_2_b.sce
new file mode 100755
index 000000000..bd21c4ffb
--- /dev/null
+++ b/758/CH1/EX1.2.b/Ex_1_2_b.sce
@@ -0,0 +1,6 @@
+//Example 1.2 (b)
+clc;clear;
+t=-5:0.01:5;
+x=2*(abs(t-1/4)<0.5);
+plot(t,x);
+title('x(t)=2*rect(t-1/4)'); \ No newline at end of file
diff --git a/758/CH1/EX1.2.c/Ex_1_2_c.sce b/758/CH1/EX1.2.c/Ex_1_2_c.sce
new file mode 100755
index 000000000..118698715
--- /dev/null
+++ b/758/CH1/EX1.2.c/Ex_1_2_c.sce
@@ -0,0 +1,7 @@
+//Example 1.2 (c)
+clc;clear;
+pi=22/7;
+t=-5:0.01:5;
+x=cos(2*pi*t-50*pi);
+plot(t,x);
+title('x(t)=cos(2*pi*t-*pi)'); \ No newline at end of file
diff --git a/758/CH1/EX1.2.d/Ex_1_2_d.sce b/758/CH1/EX1.2.d/Ex_1_2_d.sce
new file mode 100755
index 000000000..105645513
--- /dev/null
+++ b/758/CH1/EX1.2.d/Ex_1_2_d.sce
@@ -0,0 +1,8 @@
+//Example 1.2 (d)
+
+clc;clear;
+t=-5:0.01:5;
+x=-0.5*(t-4);
+plot(t,x);
+title('x(t)=r(-0.5t+2)');
+zoom_rect([-5 0 5 5]); \ No newline at end of file