summaryrefslogtreecommitdiff
path: root/2378/CH1/EX1.15/Exa_1_15.sce
diff options
context:
space:
mode:
Diffstat (limited to '2378/CH1/EX1.15/Exa_1_15.sce')
-rw-r--r--2378/CH1/EX1.15/Exa_1_15.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/2378/CH1/EX1.15/Exa_1_15.sce b/2378/CH1/EX1.15/Exa_1_15.sce
new file mode 100644
index 000000000..f3251f1e0
--- /dev/null
+++ b/2378/CH1/EX1.15/Exa_1_15.sce
@@ -0,0 +1,13 @@
+// Exa_1_15
+// Graphical representation of beats
+A = 1;
+w = 20;
+delta = 1;
+for i = 1: 1001 //making t and x matrix for various points
+ t(i) = 15 * (i-1)/1000;
+ x(i) = 2 * A * cos(delta*t(i)/2) * cos((w + delta/2)*t(i));
+end
+plot(t,x); //plotting
+xlabel('t');
+ylabel('x(t)');
+title('Phenomenon of beats');