Introduction - If you have any usage issues, please Google them yourself
Generate two pseudo random (PN) sequences for X, each with a length of 256 samples which are taken {+1,-1}, and add them before the 16-QAM data with a proper CP. The OFDM frame is depicted in the following figure. PN1 and PN2 are used for channel estimation now. Suppose the PN patterns are known at RX. Use the least squares (LS) method to estimate the channel by averaging the results obtained individually PN1 and PN2. (When perfoming the DFT window for the received signal at RX, you need to notice that the channel results in a delay of 22 samples.)