matthew989
Newbie level 4
Hi all,
I'm trying to write Matlab code for OFDM receiver block for 16QAM. but I have an error with reshape command.
I'm trying to write Matlab code for OFDM receiver block for 16QAM. but I have an error with reshape command.
Code:
Bit_Num = 4;
FFT_Num = 64;
Carrier_Num = 48;
OFDM_per_Symbol = 1;
CP = 16;
LI = 12;
Np = 4; % Number of pilot
Carriers = 1:Carrier_Num + Np;
N_Num = Bit_Num * Carrier_Num * OFDM_per_Symbol;
%Generate the random binary stream for transmit test
BitTx = randi(1,N_Num);
%Modulate (generates 16QAM symbols)
N_Num = length(BitTx);
SymQAMtmp = reshape(BitTx,4,N_Num/4).';
SymQAMtmptmp=bi2de(SymQAMtmp,2,'left-msb');
...;