Exercises

ex-sp-ch17-01

Easy

Create a Matplotlib 3D surface plot of z=sin(x)cos(y)z = \sin(x)\cos(y) on [π,π]×[π,π][-\pi, \pi] \times [-\pi, \pi] with the viridis colormap.

ex-sp-ch17-02

Easy

Plot a 3D scatter of 1000 points sampled uniformly from the surface of a unit sphere.

ex-sp-ch17-03

Easy

Create a wireframe plot of a torus with major radius 3 and minor radius 1.

ex-sp-ch17-04

Easy

Plot the 3D radiation pattern of an isotropic antenna (constant gain = 1 over all angles).

ex-sp-ch17-05

Easy

Display three orthogonal slices through a 3D Gaussian field f(x,y,z)=e(x2+y2+z2)/2f(x,y,z) = e^{-(x^2+y^2+z^2)/2}.

ex-sp-ch17-06

Medium

Plot the 3D radiation pattern of a 4x4 uniform rectangular array (URA) at half-wavelength spacing. Show both the array factor and the total pattern assuming isotropic elements.

ex-sp-ch17-07

Medium

Use PyVista to create a volume rendering of an EM field distribution inside a waveguide (create synthetic data with standing wave patterns).

ex-sp-ch17-08

Medium

Load an STL mesh with Trimesh, compute its volume and surface area, decimate it to 20% of original faces, and compare the geometric error.

ex-sp-ch17-09

Medium

Create a Plotly 3D surface of MIMO capacity as a function of SNR and number of antennas. Add hover tooltips showing the exact capacity value.

ex-sp-ch17-10

Medium

Extract an isosurface from a 3D Gaussian field using skimage.measure.marching_cubes and visualize the resulting mesh with PyVista.

ex-sp-ch17-11

Hard

Visualize the near-field radiation of a dipole antenna in 3D. The electric field of a short dipole at position r\mathbf{r} is: Eejkrrsinθθ^\mathbf{E} \propto \frac{e^{-jkr}}{r}\sin\theta\,\hat{\theta}. Show both the field magnitude and phase using color encoding.

ex-sp-ch17-12

Hard

Create an animated 3D beam sweep of a 16-element circular array, showing the beam rotating 360 degrees.

ex-sp-ch17-13

Hard

Implement a 3D channel visualization showing multipath rays between a base station and mobile user, with the channel impulse response plotted alongside.

ex-sp-ch17-14

Challenge

Build a complete 3D visualization pipeline for a phased array radar: show the array geometry, compute the 3D beam pattern with Taylor weighting, and overlay detected targets.

ex-sp-ch17-15

Challenge

Create a PyVista visualization of a 5G base station coverage volume in a urban environment: load a simple building mesh, compute ray-traced coverage, and render the result as a semi-transparent 3D volume overlaid on the buildings.