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

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

馃摌 Overview 馃摌 Amplitude Shift Keying (ASK) 馃摌 Frequency Shift Keying (FSK) 馃摌 Phase Shift Keying (PSK) 馃摌 Which of the modulation techniques—ASK, FSK, or PSK—can achieve higher bit rates? 馃М MATLAB Codes 馃摌 Simulator for binary ASK, FSK, and PSK Modulation 馃摎 Further Reading 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. For 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. ...

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

馃摌 Overview of BER and SNR 馃М Online Simulator for BER calculation 馃М MATLAB Code for BER calculation 馃摎 Further Reading 馃搨 View Other Topics on M-ary QAM, M-ary PSK, QPSK ... 馃М Online Simulator for Constellation Diagram of m-ary QAM 馃М Online Simulator for Constellation Diagram of m-ary PSK 馃М MATLAB Code for BER calculation of ASK, FSK, and PSK 馃М MATLAB Code for BER calculation of Alamouti Scheme 馃М Different approaches to calculate BER vs SNR What is Bit Error Rate (BER)? The abbreviation BER stands for Bit Error Rate, which indicates how many corrupted bits are received compared to the total number of bits sent. BER = (number of bits received in error) / (total number of transmitted bits) What is Signal-to-Noise Ratio (SNR)? SNR is the ratio of signal power to noise powe...

Calculation of SNR from FFT bins in MATLAB

馃摌 Overview 馃М MATLAB Code for Estimation of SNR from FFT bins 馃М MATLAB Code for SNR from PSD using Kaiser Window 馃摎 Further Reading Here, you can find the SNR of a received signal from periodogram / FFT bins using the Kaiser operator. The beta (尾) parameter characterizes the Kaiser window, which controls the trade-off between the main lobe width and the side lobe level. Steps Set up the sampling rate and time vector Compute the FFT and periodogram Calculate the frequency resolution and signal power Exclude the signal power from noise calculation Compute the noise power and SNR MATLAB Code for Estimation of SNR from FFT bins clc; clear; close all; % Parameters fs = 8000; f_tone = 1000; N = 8192; t = (0:N-1)/fs; % Generate signal + noise signal = sin(2*pi*f_tone*t); SNR_true_dB = 20; signal_power = mean(signal.^2); noise_power = signal_power / (10^(SNR_true_dB/10)); noisy_signal = signal + sqrt(noise_power) * randn(1, N); % Apply ...

MATLAB Code for ASK, FSK, and PSK (with Online Simulator)

馃摌 Overview & Theory 馃М MATLAB Code for ASK 馃М MATLAB Code for FSK 馃М MATLAB Code for PSK 馃М Simulator for binary ASK, FSK, and PSK Modulations 馃摎 Further Reading ASK, FSK & PSK HomePage MATLAB Code MATLAB Code for ASK Modulation and Demodulation % The code is written by SalimWireless.Com % Clear previous data and plots clc; clear all; close all; % Parameters Tb = 1; % Bit duration (s) fc = 10; % Carrier frequency (Hz) N_bits = 10; % Number of bits Fs = 100 * fc; % Sampling frequency (ensure at least 2*fc, more for better representation) Ts = 1/Fs; % Sampling interval samples_per_bit = Fs * Tb; % Number of samples per bit duration % Generate random binary data rng(10); % Set random seed for reproducibility binary_data = randi([0, 1], 1, N_bits); % Generate random binary data (0 or 1) % Initialize arrays for continuous signals t_overall = 0:Ts:(N_bits...

Online Simulator for ASK, FSK, and PSK

Try our new Digital Signal Processing Simulator!   Start Simulator for binary ASK Modulation Message Bits (e.g. 1,0,1,0) Carrier Frequency (Hz) Sampling Frequency (Hz) Run Simulation Simulator for binary FSK Modulation Input Bits (e.g. 1,0,1,0) Freq for '1' (Hz) Freq for '0' (Hz) Sampling Rate (Hz) Visualize FSK Signal Simulator for BPSK Modulation ...

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

馃摌 Overview of Energy per Bit (Eb / N0) 馃М Online Simulator for constellation diagrams of ASK, FSK, and PSK 馃М Theory behind Constellation Diagrams of ASK, FSK, and PSK 馃М MATLAB Codes for Constellation Diagrams of ASK, FSK, and PSK 馃摎 Further Reading 馃搨 Other Topics on Constellation Diagrams of ASK, PSK, and FSK ... 馃М Simulator for constellation diagrams of m-ary PSK 馃М Simulator for constellation diagrams of m-ary QAM 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 of two signals: +√Eb​ ( On the y-axis, the phase shift of 90 degrees with respect to the x-axis, which is also termed phase offset ) or √Eb (on x-axis), where Eb​ is the energy per bit. These signals represent binary 0 and 1.  BPSK (Binary PSK) Modulation: Transmits one of two signals...

Comparing Baseband and Passband Implementations of ASK, FSK, and PSK

馃摌 Overview 馃М Baseband and Passband Implementations of ASK, FSK, and PSK 馃М Difference betwen baseband and passband 馃摎 Further Reading 馃搨 Other Topics on Baseband and Passband ... 馃М Baseband modulation techniques 馃М Passband modulation techniques   Baseband modulation techniques are methods used to encode information signals onto a baseband signal (a signal with frequencies close to zero). Passband techniques shift these signals to higher carrier frequencies for transmission. Here are the common implementations: Amplitude Shift Keying (ASK) [↗] : In ASK, the amplitude of the signal is varied to represent different symbols. Binary ASK (BASK) is a common implementation where two different amplitudes represent binary values (0 and 1). ASK is simple but susceptible to noise. ASK Baseband (Digital Bits) ASK Passband (Modulated Carrier)     Fig 1:  ASK Passband Modulation (...

LDPC Encoding and Decoding Techniques

馃摌 Overview & Theory 馃М LDPC Encoding Techniques 馃М LDPC Decoding Techniques 馃摎 Further Reading 'LDPC' is the abbreviation for 'low density parity check'. LDPC code H matrix contains very few amount of 1's and mostly zeroes. LDPC codes are error correcting code. Using LDPC codes, channel capacities that are close to the theoretical Shannon limit can be achieved.  Low density parity check (LDPC) codes are linear error-correcting block code suitable for error correction in a large block sizes transmitted via very noisy channel. Applications requiring highly reliable information transport over bandwidth restrictions in the presence of noise are increasingly using LDPC codes. 1. LDPC Encoding Technique The proper form of H matrix is derived from the given matrix by doing multiple row operations as shown above. In the above, H is parity check matrix and G is generator matrix. If you consider matrix H as [-P' | I] then matrix G will b...