Summary: Puts together the previous MATLAB scripts to generate a full OFDM Symbol. 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 transmitter for the most current version.
%% Generate Baseband OFDM Signal
function [re im] = ofdm_gen(bits, bits_per_symbol, word_to_symbol_map, size_of_fft, perc_cyc)
%%
words = b2w(bits,bits_per_symbol);
symbols = w2sym(words,word_to_symbol_map,bits_per_symbol);
[re_0 im_0] = sym2fft(symbols,size_of_fft);
[re im] = cyc(re_0,im_0,perc_cyc);
end