PO_matlab
dipole_demo.m File Reference

Demonstrates 3D and 2D radiation patterns of a single dipole in free space. More...

Detailed Description

Demonstrates 3D and 2D radiation patterns of a single dipole in free space.

This script models a dipole antenna using either the SimpleDipole or DirectedDipole class, computes its far-field radiation pattern in spherical coordinates, and renders it in:

  • 3D surface plots (magnitude in dB)
  • 2D polar plots (cross-section at fixed phi)
  • 2D rectangular plots (theta vs. magnitude)

The script is also useful for visualizing the shape and orientation of a radiation pattern with arbitrary dipole orientation and far-field observation angles.

Parameters

  • Frequency: 2.5 GHz
  • Dipole length: λ₀/4
  • Dipole orientation: Z-axis
  • Far-field radius: 1000 × λ₀
  • Far-field grid: θ in [0, π], φ in [0, 2π] with 100×1000 resolution
Note
The radiation pattern is normalized and clipped to -40 dB before plotting.
Uses mysph2cart to convert the spherical mesh to Cartesian for 3D visualization.
See also
SimpleDipole
DirectedDipole
mysph2cart