diff options
Diffstat (limited to '2409/CH10')
-rwxr-xr-x | 2409/CH10/EX10.1/Ex10_1.sce | 19 | ||||
-rwxr-xr-x | 2409/CH10/EX10.2/Ex10_2.sce | 12 | ||||
-rwxr-xr-x | 2409/CH10/EX10.3/Ex10_3.sce | 38 |
3 files changed, 69 insertions, 0 deletions
diff --git a/2409/CH10/EX10.1/Ex10_1.sce b/2409/CH10/EX10.1/Ex10_1.sce new file mode 100755 index 000000000..ca7a80f60 --- /dev/null +++ b/2409/CH10/EX10.1/Ex10_1.sce @@ -0,0 +1,19 @@ + +funcprot(0) + +//Variable Declaration +PR=0.01 //The Average power received(watts) +Tb=0.0001 //Bit period(seconds) +N0=10**-7 //Noise power(joule) + +//Calculations +Eb=PR*Tb //Energy per bit received (joule) +x=sqrt(Eb/N0) + + +erf=integrate("exp(-t^2)","t",0,x) +erf1=erf*(2/%pi**0.5) +BER=(1-erf1)*(10**6)/2 + +printf("The Bit error rate is %.1f * 10^-6", BER) + diff --git a/2409/CH10/EX10.2/Ex10_2.sce b/2409/CH10/EX10.2/Ex10_2.sce new file mode 100755 index 000000000..b4602fe3b --- /dev/null +++ b/2409/CH10/EX10.2/Ex10_2.sce @@ -0,0 +1,12 @@ + +//Variable Declaration +Rb=61 //Transmission rate (Mb/s) +ENR=9.5 //Required Energy to noise ratio(dB) + +//Calculation + +Rb=10*log10(61*10**6) //Converting Transmission rate to dB +CNR=Rb+ENR //Carrier to noise ratio + +//Results +printf("Required Carrier to noise ratio is %.2f dB", CNR) diff --git a/2409/CH10/EX10.3/Ex10_3.sce b/2409/CH10/EX10.3/Ex10_3.sce new file mode 100755 index 000000000..57418a073 --- /dev/null +++ b/2409/CH10/EX10.3/Ex10_3.sce @@ -0,0 +1,38 @@ +funcprot(0) +//Variable Declaration +BER=10**-5 //Maximum allowable bit error rate + +//Calculation + +x=linspace(8,10,11) //Eb/N0 ratio represented by x +x1=x**0.5 +for i = 1:11 + x(i)=10*log10(x(i)) //Converting x into decibels +end + +erf=linspace(0,0,11) //Initialization for erf function +Pe=linspace(0,0,11) //Initialization for Probablity of error + + +for i = 1:10 + k=integrate("exp(-t**2)",'t',0,x1(i)) + erf(i)=k(1)*(2/%pi**0.5) + Pe(i)=(1-erf(i))/2 //Probability of error +end +y=linspace(9,9.59,5) +z=linspace(BER,BER,5) +a=linspace(9.59,9.59,5) +b=linspace(0,BER,5) +plot(x,Pe) +plot(y,z) +plot(a,b) +xlabel('','xdB','Pe(x)') + +x=9.6 //The Eb/N0 ratio for Maximum BER(dB) from the graph +EbN0=x+2 //Eb/N0 ratio with implementation margin +//Results + +printf("The Eb/N0 ratio with allowable BER of 10^-5 and implementation margin of 2dB is %.1f dB",EbN0) + + + |