summaryrefslogtreecommitdiff
path: root/2882/CH12/EX12.4/Ex12_4.sce
diff options
context:
space:
mode:
Diffstat (limited to '2882/CH12/EX12.4/Ex12_4.sce')
-rwxr-xr-x2882/CH12/EX12.4/Ex12_4.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/2882/CH12/EX12.4/Ex12_4.sce b/2882/CH12/EX12.4/Ex12_4.sce
new file mode 100755
index 000000000..fb1cca204
--- /dev/null
+++ b/2882/CH12/EX12.4/Ex12_4.sce
@@ -0,0 +1,18 @@
+//Tested on Windows 7 Ultimate 32-bit
+//Chapter 12 Modulation and Demodulation Pg no. 379
+clear;
+clc;
+
+//Given
+
+Vm=12;//modulating signal peak to peak voltage in volts
+Vc=9;//carrier wave peak amplitude in volts
+
+//Solution
+
+Emax=Vc+Vm/2;//maximum amplitude of AM signal in volts
+Emin=Vc-Vm/2;//minimum amplitude of AM signal in volts
+m=(Emax-Emin)/(Emax+Emin);//depth of modulation
+L1_to_L2=Emin/Emax;//ratio of side lengths
+printf("Depth of modulation = %.2f %%\n ",m*100);
+printf("Ratio of side-lengths L1/L2 = %.1f",L1_to_L2);