transmitter.m
来自「Simulation of Wimax network」· M 代码 · 共 37 行
M
37 行
function symbolTX = transmitter (pilot_mapping,data_mapping,G)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% %
%% Name: transmitter.m %
%% %
%% Description: The symbol to be transmitted is formed and %
%% passed to the frequency domain. %
%% %
%% Parameters: The encoded data, the mappings, the pilots and %
%% their positions. %
%% %
%% Result:It gives back the chain of bits, already modulated %
%% in frequency, thanks to the IFFT, prepared to be sent %
%% through the channel. %
%% %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% We can make Nfft as a parameter as well, but we are keeping it fixed in
% this case.
Nfft = 256;
Tx = 1; % It is indicated that data is being transmitted.
symbol = createsymbol (pilot_mapping,data_mapping);
symbol_ofdm = sqrt(Nfft) .* ifft(symbol,Nfft);
% Finally we generate the cyclic prefix so that the multipaths do not
% affect our data so much.
symbolTX = cyclic(symbol_ofdm,G,Tx);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?