**3.1.1.2 Signal source**

t\_data = randint(9600,1); % Random binary data stream % Plot first 40 bits in a stem plot. stem(t\_data(l :40),'filled'); title('Random Bits'); xlabel('Bit Index'); ylabel('Binary Value');

Fig. 2. Random Bits stream (Used by signal source)

xsym = bi2de(reshape(t\_data,k,length(t\_data)/k).','left-msb') ;.

figure;. stem( xsym(l: 10)); title('Random Symbols'); xlabel('Symbol Index'); ylabel('Integer Value'); close all clear all ck **M** = 16; % Size of signal constellation k = log2(M); % Number of bits per symbol t\_data=randint(9600,1)'; stem(t\_data(l :40),'filled'); title('Random Bits'); xlabel('Bit Index'); ylabel('Binary Value'); ti=(0:1:49);

Fig. 3. Bits converted to symbols

```
xsym = bi2de(reshape(t_data,k,length(t_data)/k).','left-msb'); 
% % Stem Plot of Symbols 
% Plot first 10 symbols in a stem plot. 
figure; % Create new figure window. 
stem(xsym(l:10)); 
title('Random Symbols'); 
xlabel('Symbol Index'); ylabel('Integer Value'); 
x=l; 
si=l; 
for d=l :100; 
data=t_data(x:x+95); 
x=x+96; 
k=3;
```
n=6; sl =size( data,2); % Size of input matrix j=sl/k;
