summaryrefslogtreecommitdiff
path: root/1163/CH10/EX10.1/example_10_1.sce
blob: 2f0d868616e7f72770e1bf673c453eeea0f91559 (plain)
1
2
3
4
5
6
7
8
clear;
clc;
disp("--------------Example 10.1---------------")
k=4;
n=5;
datawords=2^k; // number of datawords
codewords=2^n; // number of codewords
printf("The 4B/5B block coding scheme has %d datawords and %d codewords.\n 16 out of 32 codewords are used for message transfer and the rest are either used for other purposes or unused.",datawords,codewords); // display result