Skip to main content

5G phased arrays (with MATLAB)


For practical 5G phased arrays, the beamforming effect is generated primarily by antenna spacing. 


1. How 5G phased arrays work

  • 5G base stations use multi-element antenna arrays (often 8×8, 16×16, or even more elements for Massive MIMO).
  • Each antenna element transmits the same signal, but the phase of each element is controlled electronically.
  • The physical spacing between antennas—usually ~0.5位 (half-wavelength) to 位—creates inherent phase differences when the signal reaches a user at an angle.

蠁total,n = 蠁steering,n - (2蟺/位) n d sin(胃)

Where:

  • n = antenna index
  • d = antenna spacing
  • 胃 = angle of the target
  • 蠁steering,n = electronic phase shift applied to steer the beam
The steering phase compensates for the inherent phase from spacing to direct the beam toward the desired angle.

2. Why not use a single antenna with time delays?

  • Software time delays can emulate phased arrays in simulations.
  • But in real hardware:
    1. You need separate RF paths for each antenna element.
    2. Phase shifts are applied electronically using phase shifters at GHz frequencies.
    3. Physically shifting time on a single antenna would require ultra-fast RF switches—impractical at mmWave frequencies.

So, antenna spacing + electronic phase shifts is the standard method in 5G hardware.


3. Practical Summary for 5G

Aspect How It’s Done
Beamforming Electronic phase shifts per antenna element
Direction control Steering phases compensate for inherent spacing phase
Physical array Required; spacing usually 0.5位 or 位
Simulation Can use single antenna + time delays, but only for modeling

In real 5G phased arrays, the array spacing is the fundamental cause of phase differences, and beam steering is done by applying phase shifts per element, not by artificially delaying a single signal.


MATLAB Code

 
clc; clear; close all;
%% Parameters
N = 8; % Number of antenna elements
lambda = 1; % Wavelength (normalized)
d = 0.5*lambda; % Antenna spacing (half wavelength)
theta = -90:0.1:90; % Angle range in degrees
%% 1. Inherent Phase Only (No Steering)
theta_rad = deg2rad(theta);
inherent_phase = 2*pi*d/lambda * (0:N-1)' * sin(theta_rad);
AF_inherent = sum(exp(1j*inherent_phase),1); % Array factor
AF_inherent_dB = 20*log10(abs(AF_inherent)/N);
%% 2. Apply Phase Shifts to steer to 30 degrees
theta_s = 30; % Steering angle
steering_phase = -2*pi*d/lambda * (0:N-1)' * sin(deg2rad(theta_s));
AF_steered = sum(exp(1j*(inherent_phase + steering_phase)),1);
AF_steered_dB = 20*log10(abs(AF_steered)/N);
%% Plot
figure('Color','w','Position',[100 100 800 400]);
plot(theta, AF_inherent_dB,'b','LineWidth',2); hold on;
plot(theta, AF_steered_dB,'r','LineWidth',2);
grid on; xlabel('Angle (degrees)'); ylabel('Normalized Array Factor (dB)');
title('Linear Phased Array: Inherent vs Steered Phase');
legend('Inherent Phase (spacing only)','Applied Phase Shift (beam steering)');
ylim([-40 0]);
 

 Output

 


Contact Us

Name

Email *

Message *

Popular Posts

MATLAB Code for Constellation Diagram of QAM configurations such as 4, 8, 16, 32, 64, 128, and 256-QAM

馃摌 Overview of QAM 馃М 4-QAM MATLAB 馃М 16-QAM MATLAB 馃殌 Online Simulator 馃搨 Other Topics on Constellation Diagrams... ▼ 馃М MATLAB Code for 4-QAM 馃М MATLAB Code for 16-QAM 馃М MATLAB Code for m-ary QAM 馃М Simulator for m-ary PSK 馃М Simulator for m-ary QAM 馃М Overview of Energy per Bit (Eb / N0) 馃М Simulator for ASK, FSK, and PSK Overview of QAM One of the best-performing modulation techniques is QAM [↗] . Here, we modulate the symbols by varying the carrier signal's amplitude and phase in response to the variation in the message signal (or voltage variation). So, we may say that QAM is a combination of phase and amplitude modulation. Additionally, it performs better than ASK or PSK [↗] . In fact, any constellation for any type of modulatio...

UGC NET Electronic Science Previous Year Question Papers with Solutions

Download Papers and Solutions Exam Pattern Preparation Tips FAQs More Home / Engineering & Other Exams / UGC NET 2026 PYQ 馃搳 Exam Highlights: Electronic Science (88) Feature Details Junior Research Fellowship (JRF) ₹37,000 + HRA per month Eligibility M.Sc/M.Tech in Electronics (55%) Validity of Certificate JRF (3 Years) | Lectureship (Lifetime) 馃摜 Download UGC NET Electronics PDFs Complete collection of previous year question papers, answer keys and explanations for Subject Code 88. Start Downloading 馃搨 View All Question Papers June 2026 - Question Paper Download PDF June 202...

Flat vs Frequency Selective Online Simulator

Flat vs Frequency Selective Online Simulator Channel Type Without Fading Flat Fading Multipaths Nakagami m SNR(dB) Run Simulation Input Signal Signal After Fading Constellation Diagram BER vs SNR Explore Advanced Flat vs Frequency-Selective Fading Simulator Want to see these equations in action? Visualize it. Launch Simulator Tool Flat Fading and Frequency-Selective Fading Effects of Multipath Components and the Nakagami-m Parameter 1. Flat Fading Flat fading occurs when the signal bandwidth is smaller than the channel's coherence bandwidth, meaning that all frequency components of the transmitted signal experience approximately the same fading. It is typically associated with narrowband signals, where the multipath delay spread is small relative to the symbol duration. ...

Orthogonal Time Frequency Space (OTFS) (with MATLAB)

In OTFS (Orthogonal Time Frequency Space) modulation — a scheme designed for high-Doppler and time-varying wireless channels — the terms ISFFT and SFFT are key mathematical transformations used to move between different representation domains. Figure: OTFS block diagram 1. ISFFT — Inverse Symplectic Finite Fourier Transform Purpose: Transforms data symbols from the delay-Doppler domain to the time-frequency domain . \[ X[n, m] = \frac{1}{\sqrt{NM}} \sum_{k=0}^{N-1} \sum_{l=0}^{M-1} x[k, l] \, e^{j2\pi \left( \frac{nk}{N} - \frac{ml}{M} \right)} \] Here, \( N \) is the number of Doppler bins (time slots), and \( M \) is the number of delay bins (subcarriers). The ISFFT maps each data symbol from the delay-Doppler grid (where the channel is sparse and easier to equalize) to the time-frequency grid (where standard multicarrier modulation like OFDM can be applied). 2. SFFT — Symplectic Finite Fourier Transform Purpose: Performs the reverse operation ...

GMSK BER vs SNR (with Simulation)

  GMSK Performance: Why the BER vs. SNR Curve Matters If you’ve ever wondered why GMSK (Gaussian Minimum Shift Keying) became the backbone of the global GSM revolution, the answer lies in its unique balance of spectral efficiency and power performance. But there is no free lunch in engineering. To get that sleek, narrow spectrum, you have to pay a price in Bit Error Rate (BER) . In this guide, we break down the theoretical BER vs. SNR performance of GMSK, the "magic" of the BT product, and how to optimize your link budget for real-world conditions. What is GMSK and Why Should You Care? GMSK is a derivative of MSK (Minimum Shift Keying) that uses a Gaussian pre-modulation filter. This filter "smooths" the phase transitions, significantly reducing sideband power. The result? A constant envelope signal that allows you to use high-efficiency Class-C amplifiers without distorting the signal. This is the secr...

Online Simulator for ASK, FSK, and PSK Signal Generation

Interactive Digital Signal Processing (DSP) Tutorial and Simulator for ASK, FSK, and BPSK modulation techniques. Try our new Digital Signal Processing Simulator!   •   Interactive ASK, FSK, and BPSK tools updated for 2025. Start Now Digital Modulation Visualizer: ASK, FSK, & BPSK Simulator Learn and visualize binary modulation techniques (ASK, FSK, BPSK) in real-time with adjustable carrier and sampling parameters. Perfect for DSP students and engineers. 馃摗 ASK Simulator 馃摱 FSK Simulator 馃帤️ BPSK Simulator 馃摎 More Topics ASK Modulator FSK Modulator BPSK Modulator Demodulation More Topics 1. ASK (Ampli...

Design of CMOS XOR/XNOR Gates

Design of CMOS XOR/XNOR Gates The semiconductor industry has experienced rapid integration of multimedia applications into mobile electronics, leading to very high integration density in CMOS VLSI. As operating frequencies increase, power consumption, speed, silicon area, and reliability become critical considerations. The XOR-XNOR circuits are fundamental building blocks in arithmetic circuits (Full Adders, Multipliers), compressors, comparators, parity checkers, code converters, error-detecting/correcting codes, and phase detectors. Their performance directly impacts the complex circuits they are used in. Design goals include full output voltage swing, low power consumption, reduced transistor count, minimal delay, and simultaneous non-skewed outputs. Static Logic (Static CMOS) Stat...