summaryrefslogtreecommitdiff
path: root/851/CH5/EX5.1/Example5_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '851/CH5/EX5.1/Example5_1.sce')
-rwxr-xr-x851/CH5/EX5.1/Example5_1.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/851/CH5/EX5.1/Example5_1.sce b/851/CH5/EX5.1/Example5_1.sce
new file mode 100755
index 000000000..5925adc0d
--- /dev/null
+++ b/851/CH5/EX5.1/Example5_1.sce
@@ -0,0 +1,17 @@
+//clear//
+//Caption:Average Transmitted Power for PCM
+//Example5.1:Average Transmitted Power of PCM
+//Page 187
+clear;
+clc;
+sigma_N = input('Enter the noise variance');
+k = input('Enter the separation constant for on-off signaling');
+M = input('Enter the number of discrete amplitude levels for NRZ polar');
+disp('The average transmitted power is:')
+P = (k^2)*(sigma_N)*((M^2)-1)/12;
+disp(P)
+//Result
+//Enter the noise variance 10^-6
+//Enter the separation constant for on-off signaling 7
+//Enter the number of discrete amplitude levels for NRZ polar 2
+// The average transmitted power is: 0.0000122