summaryrefslogtreecommitdiff
path: root/3161/CH10/EX10.3/Ex10_3.sce
diff options
context:
space:
mode:
Diffstat (limited to '3161/CH10/EX10.3/Ex10_3.sce')
-rwxr-xr-x3161/CH10/EX10.3/Ex10_3.sce26
1 files changed, 26 insertions, 0 deletions
diff --git a/3161/CH10/EX10.3/Ex10_3.sce b/3161/CH10/EX10.3/Ex10_3.sce
new file mode 100755
index 000000000..998794f6c
--- /dev/null
+++ b/3161/CH10/EX10.3/Ex10_3.sce
@@ -0,0 +1,26 @@
+clc;
+//page 520
+//problem 10.3
+
+// Part (a)
+
+//Input SNR SNR_ip
+SNR_ip = 1000;
+
+//Beta B
+B = 10;
+
+//Output SNR SNR_op
+SNR_op = (1.5*(B^2)*SNR_ip)/(1 + (12*B/%pi)*(SNR_ip)*exp(-0.5*(1/(B+1))*(SNR_ip)));
+
+disp('Output SNR is '+string(10*log10(SNR_op))+' dB');
+
+// Part (b)
+
+//Input SNR SNR_ip
+SNR_ip = 10;
+
+//Output SNR SNR_op
+SNR_op = (1.5*(B^2)*SNR_ip)/(1 + (12*B/%pi)*(SNR_ip)*exp(-0.5*(1/(B+1))*(SNR_ip)));
+
+disp('Output SNR is '+string(10*log10(SNR_op))+' dB');