summaryrefslogtreecommitdiff
path: root/3446/CH4/EX4.3/Ex4_3.sce
diff options
context:
space:
mode:
Diffstat (limited to '3446/CH4/EX4.3/Ex4_3.sce')
-rw-r--r--3446/CH4/EX4.3/Ex4_3.sce21
1 files changed, 21 insertions, 0 deletions
diff --git a/3446/CH4/EX4.3/Ex4_3.sce b/3446/CH4/EX4.3/Ex4_3.sce
new file mode 100644
index 000000000..b8c7d709f
--- /dev/null
+++ b/3446/CH4/EX4.3/Ex4_3.sce
@@ -0,0 +1,21 @@
+// Exa 4.3
+// To calculate the spacing between successive pulses of the multiplexed signal.
+
+clc;
+clear all;
+
+Fs=8*10^3; //in Hz
+Fm=3.4*10^3; // in Hz
+VCH=24; //voice channels
+SCH=1; //sunchronization channel
+PDur=1; //extra pulse duration in microsec
+
+//solution
+Ts=1/(Fs);
+TimeCH=Ts/(VCH+SCH)*10^6; // in microsec
+printf('Time between the pulses is %d microsec\n',(TimeCH-PDur));
+//Now by using the engineering version of Nyquist rate sampling
+NyquistRate=2.2*Fm;
+Ts1_microsec=1/NyquistRate*10^6;
+Tc=round(Ts1_microsec)/(VCH+SCH);
+printf(" Time between the pulses by using engineering version of Nyquist rate sampling is %.2f microsec\n",(Tc-PDur));