Summary: A very fundamental part of many systems, essentially a parallel to series conversion. NOTE: The MATLAB library was used in the initial version of the design but has since been replaced by an updated LabVIEW module. Please see the LabVIEW portion of the receiver for the most current version.
%% Words to Bits (RECEIVER)
% ------------------------------------------------------------------------
% Description: This module simply takes the demodulated words and expands
% them into a bit stream for ease of comparison.
%
% Inputs: words - Group of bits
% Outputs: bits - Bit stream
function bits = w2b(words)
%%
num_subcarriers = size(words,1); % Implicit number of subcarriers
bits_per_symbol = size(words,2); % Implicit bits per symbol
total_bits = bits_per_symbol*num_subcarriers; % Total number of bits
bits = zeros(1,total_bits);
for n=1:num_subcarriers
for m=1:bits_per_symbol
bits((n-1)*bits_per_symbol+m) = words(n,m); % Separate one by one
end
end
end