diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2409/CH9/EX9.4 | |
download | Scilab-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/CH9/EX9.4')
-rwxr-xr-x | 2409/CH9/EX9.4/Ex9_4.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/2409/CH9/EX9.4/Ex9_4.sce b/2409/CH9/EX9.4/Ex9_4.sce new file mode 100755 index 000000000..58019fe97 --- /dev/null +++ b/2409/CH9/EX9.4/Ex9_4.sce @@ -0,0 +1,16 @@ + +//Variable Declaration + +delf=5 //Deviation frequency (kHz) +Bs=1 //Test Tone Frequency (kHz) +CNR=30 //Carrier to noise ration(dB) + +//Calculation +m=delf/Bs //Modulation Index +Gp=3*(m**2)*(m+1) //Processing gain for sinusoidal modulation +Gp=10*log10(Gp) //Converting Gp into dB +SNR=CNR+Gp + +//Results +printf("The receiver processing gain is %.1f dB",Gp) +printf("\nThe Signal to noise ratio is %.1f dB",SNR) |