Initializes modulation parameters to default values. function [ Para ] = F_OFDM_InitializeChainParameters( ) Input arguments: none Outputs arguments: Para: modulation parameters
0001 function [ Para ] = F_OFDM_InitializeChainParameters( ) 0002 % Initializes modulation parameters to default values. 0003 % 0004 % function [ Para ] = F_OFDM_InitializeChainParameters( ) 0005 % 0006 % Input arguments: none 0007 % 0008 % Outputs arguments: 0009 % 0010 % Para: modulation parameters 0011 % 0012 0013 % This file is part of WaveComBox: www.wavecombox.com and is distributed under 0014 % the terms of the MIT license. See accompanying LICENSE file. 0015 % Original author: Mathieu Van Eeckhaute, September 26, 2018. 0016 % Contributors: 0017 % Change log: 0018 0019 Para.Modulation= 'F-OFDM'; 0020 Para.nSubcarriers=1024; % Number of subcarriers 0021 Para.SubBandWidth= 150; %number of subcarriers per subband 0022 Para.NsubBands= 4; %number of subbands 0023 Para.guard_subcar = 0; %number of guard subcarriers between each block 0024 Para.L = Para.nSubcarriers/2+1; %Length of the sub-band FIR filters 0025 Para.dW = 2.5; %Tone offset 0026 Para.Ns = 100; % Number of OFDM multicarrier symbols 0027 Para.T = 1/15e3; % OFDM multicarrier symbol period [s] 0028 Para.CP = 72/Para.nSubcarriers; % duration of the cyclic prefix as a fraction of the symbol period 0029 Para.CenterFrequency = 1e9; % Center frequency of the transmitted signal [Hz] 0030 Para.Velocity = 0; % Velocity [km/h] 0031 0032 %Derived parameters 0033 Para.M = Para.SubBandWidth*Para.NsubBands; %nb of used subcarriers 0034 Para.ActiveSubcarriers = zeros(1, Para.M); 0035 for iSubBand = 1:Para.NsubBands 0036 Para.ActiveSubcarriers((iSubBand-1)*Para.SubBandWidth+1 : (iSubBand)*Para.SubBandWidth) = (iSubBand-1)*(Para.SubBandWidth+... 0037 Para.guard_subcar)+1:(iSubBand-1)*(Para.SubBandWidth+Para.guard_subcar)+Para.SubBandWidth; 0038 end 0039 Para.ActiveSubcarriers = Para.ActiveSubcarriers+(Para.nSubcarriers-(Para.SubBandWidth+Para.guard_subcar)*Para.NsubBands)/2; 0040 Para.SubBandSCset = reshape(Para.ActiveSubcarriers, Para.SubBandWidth, Para.NsubBands); 0041 0042 Para.N_T=1; % Number of transmitted antennas 0043 Para.N_R=1; % Number of received antennas 0044 Para.S=1; % Number of spatial streams 0045 0046 Para.Es_N0_dB=15; % Signal-to-noise ratio [dB] 0047 Para.Es=1; % Symbol energy 0048 Para.M_QAM=4; % QAM modulation order 0049 0050 % Parameters of the preamble 0051 Para.PreamblePilotSubcarriers=[]; % Pilot subcarriers in the preamble 0052 Para.PreambleLength=0; % Length of the preamble [T] 0053 0054 % Parameters of scattered pilots 0055 Para.ScatteredPilotSubcarriers=[]; % Pilot subcarriers in the data frame 0056 Para.ScatteredPilotSymbols=[]; 0057 Para.Ep=0; % Energy of the scattered pilot symbols 0058 0059 end 0060