From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 2414/CH10/EX10.1/Ex10_1.sce | 12 ++++++++++++ 2414/CH10/EX10.2/Ex10_2.sce | 13 +++++++++++++ 2414/CH10/EX10.5/Ex10_5.sce | 13 +++++++++++++ 2414/CH10/EX10.6/Ex10_6.sce | 8 ++++++++ 4 files changed, 46 insertions(+) create mode 100755 2414/CH10/EX10.1/Ex10_1.sce create mode 100755 2414/CH10/EX10.2/Ex10_2.sce create mode 100755 2414/CH10/EX10.5/Ex10_5.sce create mode 100755 2414/CH10/EX10.6/Ex10_6.sce (limited to '2414/CH10') diff --git a/2414/CH10/EX10.1/Ex10_1.sce b/2414/CH10/EX10.1/Ex10_1.sce new file mode 100755 index 000000000..ffb51af26 --- /dev/null +++ b/2414/CH10/EX10.1/Ex10_1.sce @@ -0,0 +1,12 @@ +clc; +close(); +clear(); +//page no 350 +//prob no. 10.1 +B=4; //kHz +C=2*B; +mprintf('(a) C=%ikbits/s\n',C); +C=2*B*log2(4); +mprintf(' (b) for 4-level encoding ,C=%ikbits/s\n',C); +C=2*B*log2(128); +mprintf(' (c) for 128-level encoding ,C=%ikbits/s',C); diff --git a/2414/CH10/EX10.2/Ex10_2.sce b/2414/CH10/EX10.2/Ex10_2.sce new file mode 100755 index 000000000..5ac43f846 --- /dev/null +++ b/2414/CH10/EX10.2/Ex10_2.sce @@ -0,0 +1,13 @@ +clc; +close(); +clear(); +//page no 351 +//prob no. 10.2 +B=4; //kHz +SNdb=[20 30 40]; //S/N in db +SN=10 .^(SNdb./10); //absolute S/N + +C=B .*log2(1+SN); +mprintf(' S/N(db) C(kbits/s)\n'); +out=[SNdb' C']; +disp(out); diff --git a/2414/CH10/EX10.5/Ex10_5.sce b/2414/CH10/EX10.5/Ex10_5.sce new file mode 100755 index 000000000..5bd448419 --- /dev/null +++ b/2414/CH10/EX10.5/Ex10_5.sce @@ -0,0 +1,13 @@ +clc; +close(); +clear(); +//page no 352 +//prob no. 10.5 +B=20; //kHz +C=160; //kb/s +M=2^(C/B/2); +mprintf('(a) Number of encoding levels ,M= %i\n',M); +SN=2^(C/B)-1; +SNdb=10*log10(SN) //S/N in db + +mprintf(' (b) S/N= %i S/N(db)=%.2f dB',SN,SNdb); diff --git a/2414/CH10/EX10.6/Ex10_6.sce b/2414/CH10/EX10.6/Ex10_6.sce new file mode 100755 index 000000000..5189dc05b --- /dev/null +++ b/2414/CH10/EX10.6/Ex10_6.sce @@ -0,0 +1,8 @@ +clc; +close(); +clear(); +//page no 356 +//prob no. 10.6 +R=1; //Mb/s +Bt=R/2; //MHz +mprintf('Bt= %i kHz',Bt*10^3); -- cgit