summaryrefslogtreecommitdiff
path: root/3161/CH10/EX10.3/Ex10_3.sce
blob: 998794f6c52f996273ae614d61aee17a60aaae10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
clc;
//page 520
//problem 10.3

// Part (a)

//Input SNR SNR_ip
SNR_ip = 1000;

//Beta B
B = 10;

//Output SNR SNR_op
SNR_op = (1.5*(B^2)*SNR_ip)/(1 + (12*B/%pi)*(SNR_ip)*exp(-0.5*(1/(B+1))*(SNR_ip)));

disp('Output SNR  is '+string(10*log10(SNR_op))+' dB');

// Part (b)

//Input SNR SNR_ip
SNR_ip = 10;

//Output SNR SNR_op
SNR_op = (1.5*(B^2)*SNR_ip)/(1 + (12*B/%pi)*(SNR_ip)*exp(-0.5*(1/(B+1))*(SNR_ip)));

disp('Output SNR  is '+string(10*log10(SNR_op))+' dB');