summaryrefslogtreecommitdiff
path: root/2606/CH8/EX8.12/ex8_12.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2606/CH8/EX8.12/ex8_12.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 '2606/CH8/EX8.12/ex8_12.sce')
-rwxr-xr-x2606/CH8/EX8.12/ex8_12.sce45
1 files changed, 45 insertions, 0 deletions
diff --git a/2606/CH8/EX8.12/ex8_12.sce b/2606/CH8/EX8.12/ex8_12.sce
new file mode 100755
index 000000000..fd482a127
--- /dev/null
+++ b/2606/CH8/EX8.12/ex8_12.sce
@@ -0,0 +1,45 @@
+//Page Number: 8.13
+//Example 8.12
+clc;
+//Given, Noise figure
+NF=2; //dB
+F=(10^(NF/10));
+
+AG=12; //dB
+A=(10^(AG/10));
+
+//(a)Total Output Noise Power
+
+//Also given,Input signal power
+Pi=1; //W
+
+//Input Noise power Pni
+Pni=100D-3; //W
+
+//Input SNR
+Isnr=Pi/Pni;
+
+//Output SNR
+Osnr=Isnr/F;
+
+//Total output signal power
+Po=Pi*A; //W
+
+//Total output noise power
+N=Po/Osnr; //W
+disp('W',N,'Total Output Noise Power');
+
+//(b)Signal to Noise and disortion ratio
+
+//Given. 2% is disortion
+Di=2/100;
+
+//Total disortion
+D=Di*A; //W
+
+//Useful Power
+S=(1-Di)*A; //W
+
+//As given,SNAD=10*(log10(S+N+D)/(N+D));
+SNAD=10*(log10((S+N+D)/(N+D)));
+disp('dB',SNAD,'SNAD:');