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

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...

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 June 2026 Question Paper with Answer Key & Detailed Solutions

Home / UGC NET PYQ / June 2026 Solved UGC NET Electronic Science June 2026 Question Paper with Answer Key and Full Explanations 📥 Download Question Paper (PDF) 2025 2024 2023 2022 2021 2020 Explanations 1. Answer: Option (3) Total Students = 900 Urban Students = 7/10*400 + 4/5*500 = 680 680/900 * 100 = 75.56% 2. Answer: Option (1) Urban Students = 7/10*400 + 4/5*500 + 4/7*700 + 1/2 * 600 = 1380 3. Answer: Option (3) Male = 700*4/7 = 400 Female = 700*3/7=300 400-300=100 100/400*100 = 25% 4. Answer: Option (2) 400*3/10*40/100 + 500*1/5*60/100+700*3/7*50/100+600*1/3*30/100 = 318 5. Answer: Option (2) Total Female Students in B,C, and D colleges = 600 Female Post-graduates  = 100*60/100 + 300*50/100 + 200*30/100 = 270 270/600 *100 = 45% 6. Answer: Option (3) 7. Answer: Option (2) 8. Answer: Option (4) 9. Answer: Option (4) 10. Answer: Option (2) 11. Answer: Option (2) 12. Answer...

OFDM Symbols and Subcarriers Explained

This article explains how OFDM (Orthogonal Frequency Division Multiplexing) symbols and subcarriers work. It covers modulation, mapping symbols to subcarriers, subcarrier frequency spacing, IFFT synthesis, cyclic prefix, and transmission. Step 1: Modulation First, modulate the input bitstream. For example, with 16-QAM , each group of 4 bits maps to one QAM symbol. Suppose we generate a sequence of QAM symbols: s0, s1, s2, s3, s4, s5, …, s63 Step 2: Mapping Symbols to Subcarriers Assume N sub = 8 subcarriers. Each OFDM symbol in the frequency domain contains 8 QAM symbols (one per subcarrier): Mapping (example) OFDM symbol 1 → s0, s1, s2, s3, s4, s5, s6, s7 OFDM symbol 2 → s8, s9, s10, s11, s12, s13, s14, s15 … OFDM sym...

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 📈 Q-function 📚 Resources BASK Modulation Transmits one of two signals: 0 or $\sqrt{E_b}$, representing binary 0 and 1. Simple but sensitive to noise. BFSK Modulation Transmits one of two signals: $\sqrt{E_b}$ on the Y-axis or $\sqrt{E_b}$ on the X-axis. These are orthogonal signals. BPSK Modulation Transmits $+\sqrt{E_b}$ or $-\sqrt{E_b}$ (antipodal signaling). Most efficient binary scheme. ...

Design of CMOS Flip-Flops (SR, D, JK)

Design of CMOS Flip-Flops (SR, D, JK) A flip-flop or latch is a circuit with two stable states, used to store state information. It is the basic storage element in sequential logic and a fundamental building block in digital electronics systems, including computers and communication devices. Flip-flops and latches act as data storage elements for states, pulse counting, and synchronization of variably-timed input signals to a reference clock. Flip-flops can be transparent/opaque (latches) or clocked (synchronous, edge-triggered). Latches are level-sensitive, while flip-flops are edge-sensitive. In sequential logic, the output depends on current inputs and previous states. Fig.1 shows a sequential circuit combining a combinational block and a memory element. ...

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...