0% found this document useful (0 votes)
26 views2 pages

Student Name: Dao Trong Hieu. Student ID: 20165774.: For End

The document defines input and interleaved sequences, applies convolutional encoding and interleaving to the sequences, extracts feedback bits from the encoders, and concatenates the original, encoded, and interleaved sequences along with the feedback bits into a final output sequence.

Uploaded by

Trọng Hiếu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views2 pages

Student Name: Dao Trong Hieu. Student ID: 20165774.: For End

The document defines input and interleaved sequences, applies convolutional encoding and interleaving to the sequences, extracts feedback bits from the encoders, and concatenates the original, encoded, and interleaved sequences along with the feedback bits into a final output sequence.

Uploaded by

Trọng Hiếu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Student Name: Dao Trong Hieu. Student ID: 20165774.

In = [ 1 0 1 1 0 1 1 1 0 0 0 1 0 1 0 1 1 0 0 0 1 1 0 1 1 0 1 0 1 1 ];
Interleaver = [ 2 15 28 9 23 1 22 7 30 18 11 4 25 16 3 24 6 29 19 27 8 13 20
10 5 14 12 17 21 26];
In2 = zeros(1,30);
for i=1:1:30;
In2(1,i) = In(1,Interleaver(1,i));
end
y1 = zeros(1,30);
g = [0 0 0];
for i = 1:1:30;
z = In(1,i) + g(2) + g(3);
z = mod(z,2);
y1(1,i) = mod(z + g(1) + g(3),2);
g(3) = g(2);
g(2) = g(1);
g(1) = z;
end;
y2 = zeros(1,30);
g2 = [0 0 0];
for i = 1:1:30;
z = In2(1,i) + g2(2) + g2(3);
z = mod(z,2);
y2(1,i) = mod(z + g2(1) + g2(3),2);
g2(3) = g2(2);
g2(2) = g2(1);
g2(1) = z;
end;
f1
f2
f3
f4

=
=
=
=

[0
[0
[0
[0

0
0
0
0

0];
0];
0];
0];

for i = 1:1:3;
f1(i) = mod(g(2)+g(3),2);
f2(i) = mod(g(1)+g(3),2);
g(3) = g(2);
g(2)=g(1);
g(1) = 0;
end;
for i = 1:1:3;
f4(i) = mod(g2(2)+g2(3),2);
f3(i) = mod(g2(1)+g2(3),2);
g2(3) = g2(2);
g2(2)=g2(1);
g2(1) = 0;
end;
f12 = zeros(1,6);
f43 = zeros(1,6);

for i = 1:1:3;
f12(i*2-1)=f1(i);
f12(i*2)=f2(i);
end
for i = 1:1:3;
f43(i*2-1)=f4(i);
f43(i*2)=f3(i);
end
result = zeros(1,102);
for k = 1:1:30
result(1,k*3-2) = In(k);
result(1,k*3-1) = y1(k);
result(1,k*3) = y2(k);
end
for i=91:1:96;
result(i)=f12(i-90);
result(i+6)=f43(i-90);
end;

Output
result =
Columns 1 through 33
1

Columns 34 through 66
1

Columns 67 through 99
0

Columns 100 through 102


0

You might also like