summaryrefslogtreecommitdiff
path: root/3446/CH11/EX11.1/Ex11_1.sce
blob: 67146bdd878b06b5f1b655815f14355895dc8024 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Exa 11.1
// To calculate the processing gain and improvement in information rate.

clc;
clear all;

CR1=1.2288; //Mcps(Clock rate 1)
CR2=5;//Mcps(Clock rate 2)
R1=9.6; //Information rate in Kbps for CR1
PG2=256;  //Processing Gain for CR2

//solution
PG1=10*log10(CR1*10^3/9.6);//Processing Gain for CR1
R2=CR2*10^3/PG2;//information rate in Kbps for CR2
printf('The processing gain for clock rate 1.2288Mcps is %d dB\n ',PG1);
printf('Improvemrnt in information rate is %.2f Kbps\n',R2-R1);