Exercises

ex-sp-ch21-01

Easy

Compute the free-space path loss at 3.5 GHz for distances of 10, 100, and 1000 meters.

ex-sp-ch21-02

Easy

Generate 100000 Rayleigh fading samples and verify that the mean power is 1.0 and the CDF matches the theoretical Rayleigh CDF.

ex-sp-ch21-03

Easy

Generate Ricean fading samples for K=0,5,10K = 0, 5, 10 dB and plot the envelope distributions.

ex-sp-ch21-04

Easy

Compute the maximum Doppler frequency for a mobile at 120 km/h at carrier frequencies of 900 MHz, 2.1 GHz, and 28 GHz.

ex-sp-ch21-05

Easy

Build a 4×44 \times 4 exponential correlation matrix with ρ=0.8\rho = 0.8 and verify it is positive definite using np.linalg.eigvalsh.

ex-sp-ch21-06

Medium

Simulate BPSK BER over Rayleigh fading for Eb/N0=0E_b/N_0 = 0-3030 dB and compare with the closed-form Pˉb=12(1γˉ/(1+γˉ))\bar{P}_b = \frac{1}{2}(1 - \sqrt{\bar\gamma/(1+\bar\gamma)}).

ex-sp-ch21-07

Medium

Generate time-correlated Rayleigh fading using the spectral shaping method (filter white noise with Jakes spectrum). Verify the autocorrelation matches J0(2πfdΔt)J_0(2\pi f_d \Delta t).

ex-sp-ch21-08

Medium

Generate correlated MIMO channels using the Kronecker model with 4×44 \times 4 configuration and ρ=0.5\rho = 0.5. Compute the ergodic capacity at SNR = 10 dB.

ex-sp-ch21-09

Medium

Implement the 3GPP UMa path loss model (LOS and NLOS) and plot coverage probability vs distance for a 43 dBm transmitter at 3.5 GHz.

ex-sp-ch21-10

Medium

Generate a spatially correlated shadow fading map using the FFT-based method with decorrelation distance 50 m. Plot the resulting heatmap.

ex-sp-ch21-11

Hard

Implement the Weichselberger (virtual channel) model as an alternative to Kronecker. Compare capacity distributions for the two models.

ex-sp-ch21-12

Hard

Estimate the Ricean KK-factor from 10000 channel samples using both the moment method and the MLE method. Compare accuracy.

ex-sp-ch21-13

Hard

Simulate a wideband channel with 3GPP TDL-A model. Compute the frequency response and verify the coherence bandwidth matches 1/(5τrms)1/(5\tau_{\text{rms}}).

ex-sp-ch21-14

Hard

Implement 2-branch MRC diversity over Rayleigh fading. Verify that the BER slope changes from 1/SNR1/\text{SNR} to 1/SNR21/\text{SNR}^2.

ex-sp-ch21-15

Challenge

Implement a complete 3GPP CDL-A (Clustered Delay Line) channel model with proper angle-of-arrival generation, per-cluster Doppler shifts, and antenna array response.

ex-sp-ch21-16

Challenge

Build a geometry-based stochastic channel model (GBSM) for a vehicular scenario with scatterers placed around the TX and RX. Generate time-varying channels and compare statistics with the Clarke-Jakes model.