Exercises

ex-sp-ch23-01

Easy

Implement ZF detection for a 2x2 MIMO system with BPSK and verify that it correctly recovers the transmitted symbols in a noise-free case.

ex-sp-ch23-02

Easy

Compute the SVD of a 4x4 MIMO channel and verify that U\mathbf{U} and V\mathbf{V} are unitary.

ex-sp-ch23-03

Easy

Implement ML detection for a 2x2 MIMO system with BPSK (MNt=4M^{N_t} = 4 candidates).

ex-sp-ch23-04

Easy

Show that for a diagonal channel H=diag(h1,h2)\mathbf{H} = \text{diag}(h_1, h_2), ZF detection is equivalent to per-element division.

ex-sp-ch23-05

Easy

Compute the condition number of 1000 random 4x4 MIMO channels and plot the histogram.

ex-sp-ch23-06

Medium

Simulate 2x2 MIMO BER for ZF, MMSE, and ML detectors with QPSK over 10000 channel realizations. Plot BER vs Eb/N0E_b/N_0.

ex-sp-ch23-07

Medium

Implement V-BLAST with ordered SIC for a 4x4 MIMO system. Compare BER with ZF and MMSE.

ex-sp-ch23-08

Medium

Implement SVD precoding with water-filling for a 4x4 MIMO channel. Compare capacity with equal power allocation.

ex-sp-ch23-09

Medium

Implement ZF precoding for a 4x2 multi-user MIMO downlink (4 BS antennas, 2 single-antenna users). Show zero inter-user interference.

ex-sp-ch23-10

Medium

Simulate massive MIMO with M=32,64,128M = 32, 64, 128 antennas and K=8K = 8 users. Show that conjugate BF BER improves with MM and approaches ZF.

ex-sp-ch23-11

Hard

Implement a sphere decoder for 4x4 MIMO with QPSK. Compare its BER with ML and ZF, and measure the average number of nodes visited.

ex-sp-ch23-12

Hard

Simulate the effect of imperfect CSI on ZF precoding. Model channel estimation error as H^=H+ΟƒeE\hat{\mathbf{H}} = \mathbf{H} + \sigma_e \mathbf{E} and show the BER floor.

ex-sp-ch23-13

Hard

Implement regularized ZF (RZF) precoding for multi-user MIMO: W=HH(HHH+Ξ±I)βˆ’1\mathbf{W} = \mathbf{H}^H(\mathbf{H}\mathbf{H}^H + \alpha\mathbf{I})^{-1}. Find the optimal Ξ±\alpha that maximizes sum rate.

ex-sp-ch23-14

Hard

Simulate pilot contamination in massive MIMO: two cells with M=64M = 64 antennas each, K=4K = 4 users per cell, sharing the same pilot sequences. Show the SINR floor.

ex-sp-ch23-15

Challenge

Implement MIMO-OFDM with per-subcarrier ZF detection for a 2x2 system over a frequency-selective channel. Compare with single-antenna OFDM.

ex-sp-ch23-16

Challenge

Implement the diversity-multiplexing trade-off (DMT) simulation: show that a 2x2 MIMO system can achieve diversity order 4 (Alamouti) or multiplexing gain 2 (V-BLAST), but not both simultaneously.