MATLAB computational simulation analyzing beam steering, directivity, and Array Factor (AF) in N-element linear antenna arrays.
This repository contains a MATLAB computational simulation analyzing the behavior of N-element Uniform Linear Arrays (ULA). It mathematically models and visualizes two fundamental concepts in microwave engineering and antenna theory:
- Electronic Beam Steering: Modifying the progressive phase shift to direct the main lobe.
-
Directivity and Beamwidth: Demonstrating how increasing the number of elements (
$N$ ) narrows the main beam and increases overall directivity.
The simulation relies on the calculation of the Array Factor (AF). For an N-element linear array with uniform spacing and uniform amplitude, the normalized Array Factor is given by:
Where the total phase
-
$\beta = \frac{2\pi}{\lambda}$ (Phase constant) -
$d$ = Element spacing -
$\theta$ = Observation angle -
$\alpha$ = Progressive phase shift between elements
To steer the main beam to a desired angle (
Note: The limit where $\psi \to 0$ results in a $0/0$ mathematical condition, which theoretically evaluates to $1$. The MATLAB script programmatically handles this limit using AF(isnan(AF)) = 1.
The computational script utilizes the following default parameters, modeling a standard Wi-Fi/Bluetooth ISM band scenario:
-
Operating Frequency (
$f$ ):$2.4\text{ GHz}$ -
Speed of Light (
$c$ ):$3 \times 10^8\text{ m/s}$ -
Element Spacing (
$d$ ):$\frac{\lambda}{2}$ (Half-wavelength spacing to avoid grating lobes)
The script applies the phase shift equations to steer a fixed 8-element array to
The script fixes the steering angle at
- Clone this repository to your local machine.
- Open the
.mscript in MATLAB. - Run the script. The figures will generate automatically.
- You can freely modify the
freq,angles, andN_valuesarrays in the script to explore different array configurations.
This project is open-source and available under the MIT License.