summaryrefslogtreecommitdiff
path: root/2409/CH13/EX13.3/Ex13_3.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2409/CH13/EX13.3/Ex13_3.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2409/CH13/EX13.3/Ex13_3.sce')
-rwxr-xr-x2409/CH13/EX13.3/Ex13_3.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/2409/CH13/EX13.3/Ex13_3.sce b/2409/CH13/EX13.3/Ex13_3.sce
new file mode 100755
index 000000000..f4a931791
--- /dev/null
+++ b/2409/CH13/EX13.3/Ex13_3.sce
@@ -0,0 +1,14 @@
+
+//Variable Declaration
+CIR1=27.53 //Carrier to interference ratio from Example 13.1(dB)
+CIR2=23.53 //Carrier to interference ratio from Example 13.2(dB)
+
+//Calculation
+ICRu=10**(-CIR1/10) //Interferece to carrier ratio for uplink
+ICRd=10**(-CIR2/10) //Interferece to carrier ratio for downlink
+
+ICRant=ICRu+ICRd //Overall Interferece to carrier ratio
+CIRant=-10*log10(ICRant)//Overall Carrier to interference ratio (dB)
+
+//Result
+printf("The overall carrier to interference ratio is %.2f dB",CIRant)