Exercises

ex-sp-ch22-01

Easy

Generate a single OFDM symbol with 64 subcarriers using QPSK data and plot the time-domain signal.

ex-sp-ch22-02

Easy

Add a cyclic prefix of length 16 to an OFDM symbol and verify that the last 16 samples equal the first 16 of the CP-extended signal.

ex-sp-ch22-03

Easy

Compute the PAPR of 1000 OFDM symbols with 256 subcarriers and QPSK modulation. What is the 99th percentile PAPR?

ex-sp-ch22-04

Easy

Verify that the OFDM subcarriers are orthogonal by computing the inner product of any two different subcarriers.

ex-sp-ch22-05

Easy

Compute the spectral efficiency of an OFDM system with N=1024N = 1024, NCP=72N_{\text{CP}} = 72, 900 data subcarriers, and 64-QAM.

ex-sp-ch22-06

Medium

Build a complete OFDM transceiver with 256 subcarriers, 16-QAM, and a 5-tap Rayleigh channel. Implement pilot-based channel estimation with linear interpolation. Plot BER vs SNR.

ex-sp-ch22-07

Medium

Compare ZF and MMSE equalization for OFDM with 16-QAM over a frequency-selective channel. Plot the BER difference.

ex-sp-ch22-08

Medium

Implement DFT-based channel estimation: estimate HH at pilot positions, transform to time domain (IFFT), zero out taps beyond the CP length (noise suppression), and transform back (FFT). Compare MSE with linear interpolation.

ex-sp-ch22-09

Medium

Simulate the effect of carrier frequency offset (CFO) on OFDM. Show how a fractional CFO of ϵ=0.1\epsilon = 0.1 (normalized to subcarrier spacing) causes inter-carrier interference (ICI).

ex-sp-ch22-10

Medium

Implement PAPR reduction using clipping-and-filtering. Show the trade-off between PAPR reduction and BER degradation.

ex-sp-ch22-11

Hard

Implement a complete OFDM radar processor: generate OFDM frames, add target returns with range and Doppler, and form the range-Doppler map. Detect targets using a 2D CFAR algorithm.

ex-sp-ch22-12

Hard

Implement OFDM with adaptive modulation: assign different QAM orders to different subcarriers based on their individual SNR. Show the throughput improvement over fixed modulation.

ex-sp-ch22-13

Hard

Simulate OFDMA (multi-user OFDM) where different users are assigned different subcarrier blocks. Show how frequency diversity through distributed subcarrier allocation improves cell-edge performance.

ex-sp-ch22-14

Hard

Implement SC-FDMA (DFT-spread OFDM) used in LTE uplink. Show that it has lower PAPR than OFDM while maintaining the same spectral efficiency.

ex-sp-ch22-15

Challenge

Implement a complete OFDM system with LDPC coding (using a rate-1/2 LDPC code). Show the coding gain over uncoded OFDM across different channel models.

ex-sp-ch22-16

Challenge

Implement MIMO-OFDM with spatial multiplexing: 2x2 MIMO with separate OFDM processing per antenna, ZF detection per subcarrier, and joint BER evaluation.