summaryrefslogtreecommitdiff
path: root/3871/CH16/EX16.11/Ex16_11.sce
diff options
context:
space:
mode:
Diffstat (limited to '3871/CH16/EX16.11/Ex16_11.sce')
-rw-r--r--3871/CH16/EX16.11/Ex16_11.sce21
1 files changed, 21 insertions, 0 deletions
diff --git a/3871/CH16/EX16.11/Ex16_11.sce b/3871/CH16/EX16.11/Ex16_11.sce
new file mode 100644
index 000000000..ba92250d3
--- /dev/null
+++ b/3871/CH16/EX16.11/Ex16_11.sce
@@ -0,0 +1,21 @@
+//=====================================================================================
+//Chapter 16 example 11
+
+clc;clear all;
+
+//variable declaration
+y1 = 2; //positive y- peaks in pattern
+y2 = 0.5; //positive y-peaks in pattern
+x1 = 0.5; //positive x-peaks in pattern
+x2 = 0.5; //positive x-peaks in pattern
+F = 3; //frequency of horizontal voltage signal in kHz
+
+//calculations
+fx = x1+x2; //frequency of X
+fy = y1+y2; //frequency of Y
+f = fy/(fx);
+fv = f*F; //frequency of vertical voltage signal in kHz
+
+//Result
+mprintf("frequency of vertical voltage signal in = %3.1f kHz",fv);
+