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

 

People are good at skipping over material they already know!

View Related Topics to







Contact Us

Name

Email *

Message *

Popular Posts

BER vs SNR for M-ary QAM, M-ary PSK, QPSK, BPSK, ...(MATLAB Code + Simulator)

Bit Error Rate (BER) & SNR Guide Analyze communication system performance with our interactive simulators and MATLAB tools. 馃摌 Theory 馃М Simulators 馃捇 MATLAB Code 馃摎 Resources BER Definition SNR Formula BER Calculator MATLAB Comparison 馃搨 Explore M-ary QAM, PSK, and QPSK Topics ▼ 馃М Constellation Simulator: M-ary QAM 馃М Constellation Simulator: M-ary PSK 馃М BER calculation for ASK, FSK, and PSK 馃М Approaches to BER vs SNR What is Bit Error Rate (BER)? The BER indicates how many corrupted bits are received compared to the total number of bits sent. It is the primary figure of merit for a...

Power Spectral Density Calculation Using FFT in MATLAB

馃摌 Overview 馃М Steps to calculate the PSD of a signal 馃М MATLAB Codes 馃摎 Further Reading Power spectral density (PSD) tells us how the power of a signal is distributed across different frequency components, whereas Fourier Magnitude gives you the amplitude (or strength) of each frequency component in the signal. Steps to calculate the PSD of a signal Firstly, calculate the fast Fourier transform (FFT) of a signal. Then, calculate the Fourier magnitude (absolute value) of the signal. Square the Fourier magnitude to get the power spectrum. To calculate the Power Spectral Density (PSD), divide the squared magnitude by the product of the sampling frequency (fs) and the total number of samples (N). Formula: PSD = |FFT|^2 / (fs * N) Sampling frequency (fs): The rate at which the continuous-time signal is sampled (in ...

Constellation Diagrams of ASK, PSK, and FSK (with MATLAB Code + Simulator)

Constellation Diagrams: ASK, FSK, and PSK Comprehensive guide to signal space representation, including interactive simulators and MATLAB implementations. 馃摌 Overview 馃М Simulator ⚖️ Theory 馃摎 Resources Definitions Constellation Tool Key Points MATLAB Code 馃搨 Other Topics: M-ary PSK & QAM Diagrams ▼ 馃М Simulator for M-ary PSK Constellation 馃М Simulator for M-ary QAM Constellation BASK (Binary ASK) Modulation Transmits one of two signals: 0 or -√Eb, where Eb​ is the energy per bit. These signals represent binary 0 and 1. BFSK (Binary FSK) Modulation Transmits one ...

UGC NET Electronic Science Previous Year Question Papers

Home / Engineering & Other Exams / UGC NET 2022 PYQ 馃摜 Download UGC NET Electronics PDFs Complete collection of previous year question papers, answer keys and explanations for Subject Code 88. Start Downloading UGC-NET (Electronics Science, Subject code: 88) Subject_Code : 88; Department : Electronic Science; 馃搨 View All Question Papers UGC Net Electronic Science Question Paper With Answer Key Download Pdf [June 2025] with full explanation UGC Net Electronic Science Question Paper With Answer Key Download Pdf [December 2024] UGC Net Paper 1 With Answer Key Download Pdf [Sep 2024] with full explanation UGC Net Electronic Science Question Paper With Answer Key Download Pdf [Aug 2024] with full explanation UGC Net Paper 1 With Answer Key Download...

MATLAB code for BER vs SNR for M-QAM, M-PSK, QPSk, BPSK, ...(with Online Simulator)

馃М MATLAB Code for BPSK, M-ary PSK, and M-ary QAM Together 馃М MATLAB Code for M-ary QAM 馃М MATLAB Code for M-ary PSK 馃摎 Further Reading MATLAB Script for BER vs. SNR for M-QAM, M-PSK, QPSK, BPSK % Written by Salim Wireless clc; clear; close all; snr_db = -5:2:25; psk_orders = [2, 4, 8, 16, 32]; qam_orders = [4, 16, 64, 256]; ber_psk_results = zeros(length(psk_orders), length(snr_db)); ber_qam_results = zeros(length(qam_orders), length(snr_db)); for i = 1:length(psk_orders) ber_psk_results(i, :) = berawgn(snr_db, 'psk', psk_orders(i), 'nondiff'); end for i = 1:length(qam_orders) ber_qam_results(i, :) = berawgn(snr_db, 'qam', qam_orders(i)); end figure; semilogy(snr_db, ber_psk_results(1, :), 'o-', 'LineWidth', 1.5, 'DisplayName', 'BPSK'); hold on; for i = 2:length(psk_orders) semilogy(snr_db, ber_psk_results(i, :), 'o-', 'DisplayName', sprintf('%d-PSK', psk_orde...

ASK, FSK, and PSK (with MATLAB + Online Simulator)

馃摌 ASK Theory 馃摌 FSK Theory 馃摌 PSK Theory 馃搳 Comparison 馃М MATLAB Codes 馃幃 Simulator ASK or OFF ON Keying ASK is a simple (less complex) Digital Modulation Scheme where we vary the modulation signal's amplitude or voltage by the message signal's amplitude or voltage. We select two levels (two different voltage levels) for transmitting modulated message signals. Example: "+5 Volt" (upper level) and "0 Volt" (lower level). To transmit binary bit "1", the transmitter sends "+5 Volts", and for bit "0", it sends no power. The receiver uses filters to detect whether a binary "1" or "0" was transmitted. Fig 1: Output of ASK, FSK, and PSK modulation using MATLAB for a data stream "1 1 0 0 1 0 1 0" ( Get MATLAB Code ) ...

Theoretical vs. simulated BER vs. SNR for ASK, FSK, and PSK (MATLAB Code + Simulator)

馃摌 Overview 馃М Simulator for calculating BER 馃М MATLAB Codes for calculating theoretical BER 馃М MATLAB Codes for calculating simulated BER 馃摎 Further Reading BER vs. SNR denotes how many bits in error are received for a given signal-to-noise ratio, typically measured in dB. Common noise types in wireless systems: 1. Additive White Gaussian Noise (AWGN) 2. Rayleigh Fading AWGN adds random noise; Rayleigh fading attenuates the signal variably. A good SNR helps reduce these effects. Simulator for calculating BER vs SNR for binary ASK, FSK, and PSK Calculate BER for Binary ASK Modulation Enter SNR (dB): Calculate BER Calculate BER for Binary FSK Modulation Enter SNR (dB): Calculate BER Calculate BER for Binary PSK Modulation Enter SNR (dB): Calculate BER BER vs. SNR Curves MATLAB Code for Theoretical BER % The code is written by SalimWireless.Com clc; clear; close all; % SNR va...

Online Simulator for ASK, FSK, and PSK

Try our new Digital Signal Processing Simulator!   •   Interactive ASK, FSK, and BPSK tools updated for 2025. Start Now Interactive Modulation Simulators Visualize binary modulation techniques (ASK, FSK, BPSK) in real-time with adjustable carrier and sampling parameters. 馃摗 ASK Simulator 馃摱 FSK Simulator 馃帤️ BPSK Simulator 馃摎 More Topics ASK Modulator FSK Modulator BPSK Modulator More Topics Simulator for Binary ASK Modulation Digital Message Bits Carrier Freq (Hz) Sampling Rate (...