Skip to main content

Online Simulator for Constellation Diagram of M-ary QAM


Open Simulator in Full Screen



What is M-ary Quadrature Amplitude Modulation?

M-ary QAM is a sophisticated digital modulation scheme that conveys data by changing (modulating) the amplitude of two carrier waves. These two waves (usually sinusoids) are out of phase with each other by 90° and are called the In-phase (I) and Quadrature (Q) components.

By combining both phase and amplitude shifts, QAM can represent more bits per symbol compared to simple ASK or PSK, making it highly spectrally efficient.

Mathematical Model & Symbol Mapping

In M-ary QAM, data is mapped into a complex plane. The simulator generates the time-domain signal $s(t)$ using the standard quadrature carrier equation:

s(t) = In cos(2Ï€fct) - Qn sin(2Ï€fct)

Where In and Qn represent the coordinates of the n-th symbol.

Example: 4-QAM (QPSK)

For $M=4$, we have $\sqrt{M}=2$. The possible levels for $I$ and $Q$ are {-1, 1}.

  • Bit [00] → (I: -1, Q: 1)
  • Bit [01] → (I: 1, Q: 1)
  • Bit [11] → (I: 1, Q: -1)
  • Bit [10] → (I: -1, Q: -1)

Example: 16-QAM

For $M=16$, the levels are spaced as {-3, -1, 1, 3} to maintain a distance of $d=2$.

I-Levels: -3, -1, 1, 3
Q-Levels: -3, -1, 1, 3

Resulting in 16 unique points from (-3,3) to (3,-3).

Signal Power Normalization

As implemented in the code, the constellation is normalized by the average symbol power. Because 16-QAM symbols have different amplitudes (e.g., $(\pm1, \pm1)$ vs $(\pm3, \pm3)$), we calculate the Mean Square Power and scale the signal to ensure the transmitter operates at a consistent Amplitude factor.

Symbol_Scaled = Amplitude * (I + jQ) / sqrt(avg_power)

Comparison of QAM Orders

Modulation Bits Per Symbol Noise Immunity Typical Application
4-QAM (QPSK) 2 Excellent Satellite, Deep Space
16-QAM 4 Moderate Digital TV, DSL
64-QAM 6 Low Wi-Fi 5, 4G LTE
256-QAM 8 Very Low Wi-Fi 6, 5G, Cable Interet

Applications of M-ary QAM

Because of its ability to carry high data rates, QAM is the backbone of modern wireless and wired communications:

5G & 4G Cellular

Uses adaptive QAM (from 16-QAM to 256-QAM) depending on signal strength to maximize download speeds.

Wi-Fi 6/7

The latest Wi-Fi standards use up to 4096-QAM to provide gigabit speeds in home and office environments.

Frequently Asked Questions

Why must M be a power of 2?

In digital systems, data is binary. $M=2^n$ allows each symbol to represent an integer number of bits ($n$).

What does a constellation diagram show?

It represents the possible symbols that can be transmitted. The distance from the center relates to amplitude, and the angle relates to phase.


 

Further Reading 



Contact Us

Name

Email *

Message *

Popular Posts

Electromyography (EMG) Explained

  Electromyography (EMG) EMG stands for Electromyography . It is a medical test used to check how well your muscles and the nerves that control them are working. What it does EMG measures the electrical activity in your muscles. When nerves send signals to muscles, they create tiny electrical impulses—EMG records these. Why doctors use it Doctors may recommend EMG if you have symptoms like: Muscle weakness Numbness or tingling Muscle pain or cramping Suspected nerve disorders It helps diagnose conditions such as: Carpal Tunnel Syndrome Amyotrophic Lateral Sclerosis (ALS) Peripheral Neuropathy How it’s done Nerve conduction study (NCS) – small electrical pulses are applied to test nerve signals Needle EMG – a thin needle electrode is inserted into muscles to record activity Does it hurt? You might feel mild discomfort (like a quick pinch or muscle soreness) ...

Direction of Arrival (DoA) Online Simulator (using MUSIC)

Interactive DOA Simulator X-axis XY angle (deg): 45 XZ angle (deg): 30 Noise: 0.05 Y-axis XY angle (deg): 60 YZ angle (deg): 45 Noise: 0.05 Z-axis XZ angle (deg): 60 YZ angle (deg): 30 Noise: 0.05 Estimated DOA (deg): 0 Simulation Workflow and Mathematical Background This simulator demonstrates Direction of Arrival (DOA) estimation using three-axis sensor signals (X, Y, Z), Maximal Ratio Combining (MRC) , and the MUSIC algorithm . It allows interactive control of signal angles and noise for teaching purposes. 1. Signal Generation A pure sinewave signal of frequency f is projected onto three axes using user-defined angles in different planes: X-axis: θ XY , θ XZ Y-axis: θ XY , θ YZ Z-axis: θ XZ , θ YZ Mathematically, for each time sample t : x(t) = s(t) * cos(θ_xy_x) * cos(θ_xz_x) + n_x(t) y(t) = s(t) * sin(θ_xy_y) * cos(θ_yz_y) + n_y(t) z(t) = s(t) * sin(θ_xz_z) * sin(θ_yz_z) + n_z(t) wh...

Amplitude Demodulation Simulation

Instructions for Amplitude Modulation (AM) Step 1: Click on 'Generate Message' button to generate input message signal Step 2: Then click on 'Generate Carrier' button to generate carrier signal. The carrier frequency has to be more than the message frequency and You can change frequencies using sliders Step 3: Click on 'Generate Amplitude Modulated Signal' button to generate Amplitude Modulated Signal Step 4: Click the 'Show Frequency Spectrums' button to view the AM spectra. Here, the modulation index is defined as the ratio of the message signal amplitude to the carrier signal amplitude. You can adjust both values. 50 Hz Step 1: Generate Message 500 Hz Step 2: ...

MIMO Channel Matrix | Rank and Condition Number

MIMO / Massive MIMO MIMO Channel Matrix | Rank and Condition...   The channel matrix in wireless communication is a matrix that describes the impact of the channel on the transmitted signal. The channel matrix can be used to model the effects of the atmospheric or underwater environment on the signal, such as the absorption, reflection or scattering of the signal by surrounding objects. When addressing multi-antenna communication, the term "channel matrix" is used. Let's assume that only one TX and one RX are in communication and there's no surrounding object. Here, in our case, we can apply the proper threshold condition to a received signal and get the original transmitted signal at the RX side. However, in real-world situations, we see signal path blockage, reflections, etc.,  (NLOS paths [↗]) more frequently. The obstruction is typically caused by building walls, etc. Multi-antenna communication was introduced to address this issue. It makes diversity app...

MATLAB Code for MUSIC

  MATLAB Code clc; clear; close all ; %% Step 1: Define Parameters M = 8; % Number of array sensors d = 0.5; % Sensor spacing (lambda/2) K = 2; % Number of signals N = 200; % Number of snapshots theta = [-20 30]; % True signal angles (degrees) SNR = 10; % Signal-to-noise ratio (dB) fprintf( 'Step 1: Parameters Initialized\n' ); %% Step 2: Generate Signal Sources t = 1:N; s1 = exp(1j*2*pi*0.05*t); s2 = exp(1j*2*pi*0.1*t); S = [s1; s2]; figure; plot(real(S(1,:))) title( 'Signal 1 (Real Part)' ) xlabel( 'Samples' ) ylabel( 'Amplitude' ) figure; plot(real(S(2,:))) title( 'Signal 2 (Real Part)' ) xlabel( 'Samples' ) ylabel( 'Amplitude' ) fprintf( 'Step 2: Source Signals Generated\n' ); %% Step 3: Construct Steering Matrix A = zeros(M,K); for k = 1:K A(:,k) = exp(-1j*2*pi*d*(0:M-1)'*sin(theta(k)*pi/180)); end fprintf( 'Step 3: Steering Matr...

Constellation Diagrams of M-ary QAM | M-ary Modulation

📘 Overview of QAM 🧮 MATLAB Code for m-ary QAM (4-QAM, 16-QAM, 32-QAM, ...) 🧮 Online Simulator for M-ary QAM Constellations 📚 Further Reading 📂 Other Topics on Constellation Diagrams of QAM configurations ... 🧮 MATLAB Code for 4-QAM 🧮 MATLAB Code for 16-QAM 🧮 MATLAB Code for m-ary QAM (4-QAM, 16-QAM, 32-QAM, ...) 🧮 Simulator for constellation diagrams of m-ary PSK 🧮 Simulator for constellation diagrams of m-ary QAM 🧮 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 QAM Unlike M-ary PSK, where the signal is modulated with diffe...

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