Result:
6.1.Part 1:
a) 1. Test_noise = to test the BER and packet-error rate for binary seqences.
2. Binseq_text = to get the sequence for ASK.
3. Binseq_det = to implement coherent ASK detection for 1 packet.
b) 1.
2.
3.
4.
5.
c) 1.
function x=rand_seq1(npack)
x0=rand(1,npack);
for k=1:npack
if x0(k)>0.5;
x(k)=1;
else
x(k)=0;
end
end
2.
function [y]=Q_function(x)
y=qfunc(x);
distribution.
d)
e) Voltage Ampltude
Voltage Amplitude (V)
Sampling Frequency (Hz)
Bit Rate (Bits/sec)
Bit Error
Packet Error
Number of bits for the
whole transmission
Theoretical BER
Measured BER
Measured Packet Error
Rate (PER)
SNR (dB)
1
10
1
3
2
10000
2
10
1
0
0
10000
Value
3
10
1
0
0
10000
4
10
1
0
0
10000
5
10
1
0
0
10000
2.2100
e-4
3.0000
e-4
0.2
1.0530
e-12
0
2.7973
e-26
0
3.6111
e-45
0
2.1579
e-69
0
10.915
1
16.935
7
20.457
6
22.956
3
24.894
5
Value
1
1
10
14
1
1
2
0
2
0
10000 10000
1
2
1
543
10
1000
0
0.05
81
0.05
43
1
1
6
1
31
10
1000
0
0.00
32
0.00
31
1
1
20
1
0
0
10000
2.2100
e-004
2.0000
e-004
0.2
1.6095
e-005
0
3.3643
e-007
0
3.92
54
8.69
67
10.915
1
12.376
4
13.925
4
Bit Rate
Voltage Amplitude (V)
Sampling Frequency (Hz)
Bit Rate (Bits/sec)
Bit Error
Packet Error
Number of bits for the whole
transmission
Theoretical BER
Measured BER
Measured Packet Error Rate (PER)
SNR (dB)
1
10
1
2
2
10000
2.2100
e-004
2.0000
e-004
0.2
10.915
1
1
10
2
65
10
1000
0
0.00
65
0.00
65
1
7.90
48
Value
1
12
3
144
10
1000
0
0.01
31
0.01
44
1
6.14
39
1
12
4
261
10
1000
0
0.02
71
0.02
61
1
4.89
45
1
10
5
585
10
1000
0
0.05
81
0.05
85
1
3.92
54
x 10
2
1
0
-1
0
Voltage Amplitude,A /V
0.1
0.05
0
-0.05
10
15
20
25
The figure above, as the amplitude and frequency increasing, the bit error
rate (BER) is decreasing and its exponentially approximate to zero. But
when the bit rate is changing, the bit error rate (BER) is increasing.
Bit Error Rate, BER Bit Error Rate, BER Bit Error Rate, BER
Graph BER against SNR (dB) for each of the varying parameters
BER versus SNR(dB)Graph for VaryingAmplitude
0.04
Theoretical BER
Measured BER
0.02
0
10
12
14
16
18
20
SNR (dB)
24
26
0.2
Theoretical BER
Measured BER
0.1
0
-0.1
SNR (dB)
10
12
14
0.15
Theoretical BER
Measured BER
0.1
0.05
0
22
SNR (dB)
10
11
The graph above, it show that all carrying parameters for both theory and
measured are almost the same.
6.2.Part 2:
Voltage Amplitude
Voltage Amplitude (V)
Sampling Frequency (Hz)
Bit Rate (Bits/sec)
Bit Error
Packet Error
Total Bits
Theoretical BER
Measured BER
Measured Packet Error Rate
SNR (dB)
1
10
1
0
0
1000
0
0
0
0
2
10
1
0
0
1000
0
0
0
0
Value
3
10
1
0
0
1000
0
0
0
0
4
10
1
0
0
1000
0
0
0
0
5
10
1
0
0
1000
0
0
0
0
1
2
1
0
0
1000
0
0
0
0
1
6
1
0
0
1000
0
0
0
0
Value
1
10
1
0
0
1000
0
0
0
0
1
14
1
0
0
1000
0
0
0
0
1
20
1
0
0
1000
0
0
0
0
1
10
2
0
0
1000
0
0
0
0
Value
1
10
3
0
0
1000
0
0
0
0
1
10
4
0
0
1000
0
0
0
0
1
10
5
0
0
1000
0
0
0
0
1
10
1
0
0
1000
0
0
0
0
-4
x 10
2
1
0
-1
0
Voltage Amplitude,A /V
0.1
0.05
0
-0.05
10
15
20
25
Bit Error Rate, BER Bit Error Rate, BER Bit Error Rate, BER
From the graph above, all the value is zero. This is because there is no
noise introduce to the signal.
BER versus SNR(dB)Graph for VaryingAmplitude
0.04
Theoretical BER
Measured BER
0.02
0
10
12
14
16
18
20
SNR (dB)
24
26
0.2
Theoretical BER
Measured BER
0.1
0
-0.1
SNR (dB)
10
12
14
0.15
Theoretical BER
Measured BER
0.1
0.05
0
22
SNR (dB)
10
11
From the graph above, all the value is zero because there is no noise
introduce into the signal and produce infinity SNR.
6.3.Part 3:
Voltage Amplitude
Voltage Amplitude (V)
Sampling Frequency (Hz)
Bit Rate (Bits/sec)
Bit Error
Packet Error
Total Bits
Theoretical BER
Measured BER
Measured Packet Error Rate
SNR (dB)
1
10
1
420
10
10000
2.2100
e-004
0.0420
1
10.915
1
2
10
1
38
1
10000
1.0530
e-012
0.0038
0.8
16.935
7
Value
3
10
1
0
0
10000
2.7973
e-026
3e-004
0.3
20.457
6
4
10
1
0
0
10000
3.6111
e-045
0
0
22.956
3
5
10
1
0
0
10000
2.1579
e-069
0
0
24.894
5
Value
1
10
1
425
10
10000
1
14
1
9
6
10000
1
20
1
0
10
10000
2.2100
e-004
0.0425
1.6095
e-005
9e-004
3.3643
e-007
0
1
10.915
1
0.6
12.376
4
0
13.925
4
1
2
1
1735
10
1000
0
0.058
1
0.173
5
1
3.925
4
1
6
1
1488
10
1000
0
0.003
2
0.148
8
1
8.696
7
Bit Rate
Voltage Amplitude (V)
Sampling Frequency (Hz)
Bit Rate (Bits/sec)
Bit Error
Packet Error
Total Bits
1
10
1
413
10
10000
Theoretical BER
Measured BER
2.2100
e-004
0.0413
1
10.915
1
10
2
1303
10
1000
0
0.006
5
0.131
0
1
7.904
Value
1
10
3
1484
10
1000
0
0.013
1
0.148
4
1
6.935
1
10
4
1233
10
1000
0
0.027
1
0.123
3
1
4.894
1
10
5
870
10
1000
0
0.058
1
0.087
0
1
3.925
1
-4
x 10
2
1
0
-1
0
Voltage Amplitude,A /V
0.1
0.05
0
-0.05
10
15
20
25
From the graph above, as the amplitude and frequency increasing, the bit
error has decreasing approximate to zero. But in the changing of the bit
rate, the bit error rate is increasing. This is because the BER theory is not
affected by influence of inter-symbol interference (isi).
Bit Error Rate, BER Bit Error Rate, BER Bit Error Rate, BER
Theoretical BER
Measured BER
0.02
0
10
12
14
16
18
20
SNR (dB)
24
26
0.2
Theoretical BER
Measured BER
0.1
0
-0.1
SNR (dB)
10
12
14
0.15
Theoretical BER
Measured BER
0.1
0.05
0
22
SNR (dB)
10
11
The graph above, it show that varying parameters for both theory and
measured are not the same because the measured BER not affected by isi.
7.0. Discussion
8.0. Conclusion
In this lab session, we were given the coding of Matlab Based Function and
from here we were needed to alter and added this coding to solve
problems. We also able to understanding of the concepts of digital
communication systems and tell the difference performance of digital
communication system when it is under the influence of Inter-symbol
Interference (ISI) and when it is both under the influence of Inter-symbol
Interference (ISI) with corrupted by noise.