Skip to main content

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



Overview

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:

AWGN adds random noise; Rayleigh fading attenuates the signal variably. A good SNR helps reduce these effects.

Bit Error Rate (BER) Equations

BER formulas for ASK, FSK, and PSK modulation schemes.

ASK

BER = 0.5 × erfc(0.5 × √SNR)
= Q(√(SNR / 2))

FSK

BER = 0.5 × erfc(√(SNR / 2))
= Q(√SNR)

PSK

BER = 0.5 × erfc(√SNR)
= Q(√(2SNR))
View BER Derivation for ASK, FSK, and PSK in details →

erfc / Q-function (Click here)

Live BER Simulator (Theoretical)

Calculate Bit Error Rate for Binary ASK, FSK, and PSK Modulations instantly.

Binary ASK Modulation
BER: 7.864e-2
Binary FSK Modulation
BER: 7.864e-2
Binary PSK Modulation
BER: 7.864e-2

BER vs. SNR Performance Curves (using MATLAB)

BER vs SNR

Figure 1: Theoretical BER curves

BER vs SNR

Figure 2: Simulated BER curves

MATLAB Code: Theoretical BER

MATLAB Script
% The code is written by SalimWireless.Com clc; clear; close all; % SNR values in dB for ASK, BFSK, and BPSK SNRdB_ask = 0:1:20; SNRdB_bfsk = 0:1:20; SNRdB_bpsk = 0:1:20; % Convert SNR from dB to linear scale SNR_ask = 10.^(SNRdB_ask/10); SNR_bfsk = 10.^(SNRdB_bfsk/10); SNR_bpsk = 10.^(SNRdB_bpsk/10); % Theoretical BER for ASK BER_th_ask = (1/2) * erfc(0.5 * sqrt(SNR_ask)); % Theoretical BER for BFSK BER_th_bfsk = (1/2) * erfc(sqrt(SNR_bfsk / 2)); % Theoretical BER for BPSK BER_th_bpsk = 0.5 * erfc(sqrt(SNR_bpsk)); % Plotting figure; hold on; semilogy(SNRdB_ask, BER_th_ask, '-rh', 'LineWidth', 2.5); semilogy(SNRdB_bfsk, BER_th_bfsk, '-kh', 'LineWidth', 2.5); semilogy(SNRdB_bpsk, BER_th_bpsk, '-bh', 'LineWidth', 2.5); xlabel('SNR (dB)'); ylabel('Bit Error Rate (BER)'); title('Theoretical BER vs. SNR for Binary ASK, FSK, and PSK'); grid on; legend('BASK Theoretical', 'BFSK Theoretical', 'BPSK Theoretical'); set(gca, 'YScale', 'log'); yticks([1e-6 1e-5 1e-4 1e-3 1e-2 1e-1 1]); ylim([1e-6 1]); xlim([0 20]); hold off; web('https://www.salimwireless.com/search?q=ask%20fsk%20psk', '-browser');

MATLAB Code: Simulated BER (with AWGN)

MATLAB Simulation
% Simulation Parameters clc; clear; close all; numBits = 1e6; SNRdB = 0:1:20; SNR = 10.^(SNRdB/10); BER_sim_ask = zeros(1, length(SNRdB)); BER_sim_fsk = zeros(1, length(SNRdB)); BER_sim_psk = zeros(1, length(SNRdB)); for i = 1:length(SNRdB) % ASK bits = randi([0 1], 1, numBits); txASK = bits; noise = sqrt(1/(2*SNR(i))) * randn(1, numBits); rxASK = txASK + noise; bits_rxASK = rxASK > 0.5; BER_sim_ask(i) = sum(bits ~= bits_rxASK) / numBits; % FSK txFSK = (bits == 1) + 1j*(bits == 0); noise = sqrt(1/(2*SNR(i))) * (randn(1, numBits) + 1j*randn(1, numBits)); rxFSK = txFSK + noise; dist1 = abs(rxFSK - (1 + 1j*0)); dist0 = abs(rxFSK - (0 + 1j*1)); bits_rxFSK = dist1 < dist0; BER_sim_fsk(i) = sum(bits ~= bits_rxFSK) / numBits; % PSK txPSK = 2*bits - 1; noise = sqrt(1/(2*SNR(i))) * randn(1, numBits); rxPSK = txPSK + noise; bits_rxPSK = rxPSK > 0; BER_sim_psk(i) = sum(bits ~= bits_rxPSK) / numBits; end figure; semilogy(SNRdB, BER_sim_ask, '-r', 'LineWidth', 2); hold on; semilogy(SNRdB, BER_sim_fsk, '-g', 'LineWidth', 2); semilogy(SNRdB, BER_sim_psk, '-b', 'LineWidth', 2); grid on; xlabel('SNR (dB)'); ylabel('Bit Error Rate (BER)'); title('Simulated BER vs. SNR'); legend('BASK', 'BFSK', 'BPSK'); axis([0 20 1e-5 1]); web('https://www.salimwireless.com/search?q=ask%20fsk%20psk', '-browser');

BER vs SNR Simulation (Theoretical vs Simulated with AWGN)






Theoretical vs Simulated BER vs SNR for Binary ASK (with AWGN)

Higher bits = More accuracy but slower.

Example: -10:2:20 or 5

Observation Table

SNR (dB) Simulated BER


Contact Us

Name

Email *

Message *

Popular Posts

Hybrid Beamforming | Page 1

Beamforming Techniques Hybrid Beamforming... Page 1 | Page 2 | Hybrid Beamforming: Hybrid beam formation was developed to address some of the limitations of digital pre-coding approaches. Every antenna element is connected to an RF chain in digital pre-coding (beam forming) method. We also know that each RF chain is in charge of providing a separate data stream between the transmitter and the receiver. We know that a larger number of independent data streams leads to higher data rates. It has a spatial multiplexing feature for MIMO. As a result, we may assume that switching from MIMO to massive MIMO will benefit us more in terms of spatial multiplexing in massive MIMO, where each antenna is coupled to a single RF chain. We'll proceed with a definition of hybrid beam forming. Overview of hybrid beam forming with example: Unlike digital beam forming, more than one antenna element is connected to a single RF chain in hybr...

Amplitude Shift Keying (ASK) Modulation & Demodulation (with Simulation)

Amplitude Shift Keying (ASK): Signal Analysis and Characterization Theoretical Overview: Amplitude Shift Keying (ASK) represents a primary digital modulation technique wherein information is encoded through discrete variations in the carrier signal's instantaneous amplitude. In a Binary ASK (BASK) framework, the modulation process maps binary data onto two distinct amplitude levels. Specifically, the binary '1' (mark) is conveyed by a sinusoidal carrier with amplitude A c and frequency f c over a bit interval T b , while the binary '0' (space) is represented by a null signal state. This particular signaling method is widely recognized as On-Off Keying (OOK) . It is technically realized by gating a carrier oscillator with a unipolar baseband sequence, effectively performing a product modulation that shifts the baseband spectrum to the carrier frequency. ASK Transmitter Architecture: ...

UGC NET Electronic Science Previous Year Question Papers with Solutions

Home / Engineering & Other Exams / UGC NET 2026 PYQ ⬇️ Download Papers and Solutions 📋 Exam Pattern 💡 Preparation Tips ❓ FAQs 📊 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 2025 - Question Paper Download PDF June 2025 - Solved Paper + Explanation ...

Frequency Shift Keying (FSK) Modulation & Demodulation (with Simulation)

Frequency Shift Keying (FSK) Theoretical Foundations: Frequency Shift Keying (FSK) is a discrete frequency modulation scheme wherein the digital information is encoded via instantaneous shifts in the carrier signal's frequency. The fundamental implementation is Binary FSK (BFSK), which maps binary data onto two distinct, discrete spectral states. A binary '1' (the "mark" state) is represented by a carrier frequency \( f_1 \), while a binary '0' (the "space" state) corresponds to frequency \( f_2 \). Each symbol is sustained for a bit interval denoted by \( T_b \). FSK Transmitter Characterization: The mathematical model for the modulated BFSK output \( s(t) \) is defined as: \[ s(t) = \begin{cases} A_c \cos(2\pi f_1 t), & \text{for } m = 1 \\ A_c \cos(2\pi f_2 t), & \text{for } m = 0 \end{cases} \] ...

Advanced M-ary Modulation Simulator: Constellation, min dist, Efficiency, SER, EVM (RMS)

Advanced M-ary Communication Lab Analytical & Statistical Performance of Digital Modulation Theoretical Probability of Error (\(P_s\)) \[ P_s = Q\left(\sqrt{\frac{2 E_b}{N_0}}\right) \] Modulation (M-ary) BPSK (M=2) QPSK (M=4) 8-PSK (M=8) 16-QAM (M=16) 64-QAM (M=64) 256-QAM (M=256) SNR (\(E_b/N_0\)): 12 dB Efficiency 2 bps/Hz Min Dist (\(d_{min}\)) 1.41 Symbol Error 1.2e-5 EVM (RMS) 0.0% Constellation Diagram Noise PDF & Decision Tail 1. Geometric Mapping ...

RMS Delay Spread, Excess Delay Spread and Multi-path ...(with MATLAB + Simulator)

📘 Overview of Delay Spread and Multi-path 🧮 Excess Delay spread 🧮 Power delay Profile 🧮 RMS Delay Spread 📚 Further Reading 📂 Other Topics on RMS Delay Spread, Excess Delay ... 🧮 Multipath Components or MPCs 🧮 Online Simulator for Calculating RMS Delay Spread 🧮 Why is there significant multipath in the case of very high frequencies? 🧮 Why RMS Delay Spread is essential for wireless communication? 🧮 Why the Power Delay Profile is essential? 🧮 MATLAB Codes for Calculating Different Types of delay Spreads Delay Spread, Excess Delay Spread, and Multipath (MPCs) The fundamental distinction between wireless and wired connections is that in wireless connections signal reaches at receiver thru multipath signal propagation rather than directed transmission like co-axial cable. Wireless Communication has no set communication path between the transmitter and the receiver. The line...

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 More Topics 1. ASK (Amplitude Shift Keying) Simulat...

QPSK Online Simulator (Signal Generation)

Simulator for QPSK Modulation Quadrature (4-PSK) Bitstream (Even length) Carrier Freq (Hz) Samples Per Symbol Run QPSK Simulation The Math Behind QPSK Quadrature Phase Shift Keying (QPSK) is a form of digital modulation that transmits two bits per symbol by changing the phase of a carrier wave. s(t) = A cos(2Ï€f c t + θ n ) Phase (θ n ): Each pair of bits (dibit) corresponds to a specific phase shift. In Gray coding, we use: "00" → Ï€/4 (45°) "01" → 3Ï€/4 (135°) "11" → 5Ï€/4 (225°) "10" → 7Ï€/4 (315°) Efficiency: Since 4 phases are used, QPSK carries double the data of BPSK in the same bandwidth. ...