Skip to main content

MATLAB Code for 8-PSK, 16-PSK, ...


 

MATLAB Code for BPSK, QPSK, 8-PSK, 16-PSK, 32-PSK


 

for BPSK, Constellation Size, M = 2
for QPSK, M = 4
for 8-PSK, M = 8, and so on 

 Output


Figure: 8-PSK Modulation




Figure: 8-PSK Demodulation after adding AWGN Noise

Using the above MATLAB code you'll able be to modulate and demodulate 2-PSK, 4-PSK, 8-PSK, 16-PSK, 32-PSK and so on. 

16-PSK

Fig: 16-PSK



In this above code 'M' is the number of the constellation points which denotes the total number of symbols or signals. You can vary the number of constellation points in the MATLAB code above. 
 

MATLAB Code for BER vs SNR for BPSK, QPSK, 8-PSK, 16-PSK, 32-PSK 

 
 

 

Real-World Applications of PSK Modulation

M-ary PSK modulation is widely used in modern telecommunications:

  • BPSK: Used in deep-space telemetry and low-cost passive RFID tags.
  • QPSK: The backbone of Satellite Television (DVB-S), cable modems, and 4G LTE control channels.
  • 8-PSK: Commonly used in the EDGE cellular network and aircraft communication systems.
  • Higher Order PSK: Used in high-speed optical fiber communications where SNR is strictly controlled.

Why are Constellation Diagrams Important?

To understand any digital modulation scheme, constellation diagrams are extremely important because they visually represent how signals vary in amplitude and phase. In the case of Phase Shift Keying (PSK), the signal amplitude remains constant while only the phase changes.

Communication engineers often analyze the distances between constellation points to evaluate the performance and efficiency of a modulation scheme. The minimum distance between constellation points directly affects the error performance of the system. For example, it is well known that PSK can provide approximately a 3 dB SNR advantage over FSK under certain conditions. This performance difference originates from the separation between constellation points and the corresponding Euclidean distance in the signal space.

Similarly, constellation point spacing plays a critical role in the performance of M-ary PSK modulation schemes. When the signal-to-noise ratio (SNR) is high, higher-order M-PSK schemes can be used to achieve greater spectral efficiency and higher data rates. However, as the modulation order increases, the angular separation between adjacent constellation points decreases, making the system more susceptible to noise and phase errors.

Therefore, in low-SNR environments, lower-order modulation schemes such as BPSK are generally preferred because their constellation points are more widely separated, resulting in better bit error rate (BER) performance and improved reliability. You can try the interactive online (web based) simulations below to understand how constellation diagram works.


Try Interactive Online Simulators


Comparison of M-PSK Modulation Schemes

Modulation M (Symbols) Bits per Symbol Noise Immunity
BPSK 2 1 Highest
QPSK 4 2 High
8-PSK 8 3 Medium
16-PSK 16 4 Low

Theoretical Bit Error Rate (BER) for m-ary PSK

For M-PSK in an AWGN channel, the symbol error probability P_s can be approximated for high SNR as:

Ps ≈ 2Q( √(2Es/N0) sin(π/M) )

Where Es/N0 is the energy-to-noise density ratio and M is the modulation order.


Read More about BER vs SNR for m-ary PSK and QAM


Why Is QPSK an Important Modulation Scheme?

Quadrature Phase Shift Keying (QPSK) is an important digital modulation technique because it can transmit twice the data rate of Binary Phase Shift Keying (BPSK) while maintaining nearly the same bit error rate (BER) performance at low signal-to-noise ratio (SNR) levels when Gray coding is employed.

Compared with higher-order modulation schemes, QPSK offers a good balance between data rate, spectral efficiency, and reliability. Its spectral efficiency is comparable to that of 4-QAM and, under low-SNR conditions, it can outperform higher-order schemes such as 16-QAM in terms of robustness. In highly noisy communication channels, QPSK may even provide better overall spectral efficiency than 4-QAM or 16-QAM due to its lower error susceptibility.

As a result, QPSK is widely used in practical wireless communication systems and is often combined with QAM-based modulation techniques in adaptive modulation schemes, where the modulation order is dynamically adjusted according to channel conditions.

Read More: BER Performance Comparison of QPSK, BPSK, 4-QAM, 16-QAM, 64-QAM, and 256-QAM Using MATLAB and Simulation Tools (Click Here →)


Frequently Asked Questions

Q1: Why does the constellation plot look blurry at low SNR? A: At low SNR, the noise power is high, causing the received symbols to deviate significantly from their ideal positions.
Q2: Can I use this code for M=64? A: Yes, the pskmod function supports any power of 2 for M, but note that 64-PSK is rarely used in practice because QAM is more efficient for such high orders.


Further Reading



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

GMSK BER vs SNR (with Simulation)

  GMSK Performance: Why the BER vs. SNR Curve Matters If you’ve ever wondered why GMSK (Gaussian Minimum Shift Keying) became the backbone of the global GSM revolution, the answer lies in its unique balance of spectral efficiency and power performance. But there is no free lunch in engineering. To get that sleek, narrow spectrum, you have to pay a price in Bit Error Rate (BER) . In this guide, we break down the theoretical BER vs. SNR performance of GMSK, the "magic" of the BT product, and how to optimize your link budget for real-world conditions. What is GMSK and Why Should You Care? GMSK is a derivative of MSK (Minimum Shift Keying) that uses a Gaussian pre-modulation filter. This filter "smooths" the phase transitions, significantly reducing sideband power. The result? A constant envelope signal that allows you to use high-efficiency Class-C amplifiers without distorting the signal. This is the secr...

The output voltage V0 (in Volt) for the network given in the Figure is ___

  Find the Output Voltage V o Solve the given circuit using Kirchhoff's Current Law (KCL), Ohm's law, and the supernode method. 1. Given Circuit Parameters Current source 1 mA Resistors 1 kΩ Each resistor Voltage source 6 V Required V o 2. Understand the Circuit The circuit contains a 1 mA current source, four 1 kΩ resistors, and a 6 V source connected between the two midpoint nodes. The output voltage is measured between the top and bottom rails. Reference node Take the bottom rail as ground: 0 V . Let the top rail voltage be V T , and...

What is a Supernode?

  Circuit Analysis What Is a Supernode? A supernode is formed when an ideal voltage source connects two non-reference nodes. It allows us to apply Kirchhoff's Current Law (KCL) to the combined circuit boundary. 1. Understanding a Supernode In nodal analysis, a voltage source between two unknown-voltage nodes makes the current through that source difficult to express directly using Ohm's law. We combine the two nodes and the voltage source into one extended region called a supernode. Key idea Apply KCL around the outer boundary of the supernode, then use the voltage source to write an additional voltage equation. 2. Supernode Circuit Diagram The voltage source connects nodes V L an...

A binary ripple counter is designed to count (0)₁₀ to (64)₁₀. Which of the following is/are the number of flip-flops required ...

  Q. A binary ripple counter is designed to count  (0)₁₀ to (64)₁₀ . Which of the following is/are the number of flip-flops required to design the counter?   (A) 6 (B) 7 (C) 4 (D) 5 Solution A binary ripple counter must count from (0)₁₀ to (64)₁₀ , including both endpoints. Step 1: Calculate the total number of states Since both 0 and 64 are included, add 1 to the difference: N = Last value − First value + 1 N = 64 − 0 + 1 = 65 states The counter visits every integer from 0 through 64: 0, 1, 2, 3, ..., 63, 64 There are 65 distinct states in total. Step 2: Calculate the number of flip-flops Each flip-flop stores one bit. With n flip-flops, the counter can represent 2ⁿ distinct states. 2⁶ = 64 states (not enough) 2⁷ = 128 states (eno...

Parametric Down-Conversion of Photons

  Nonlinear Optics One incoming photon is converted into two lower-energy photons, typically in a nonlinear optical medium. Energy is conserved: E in = E 1 + E 2 E in ​ = E 1 ​ + E 2 ​ . Parametric Down-Conversion A nonlinear optical process in which one pump photon is converted into two lower-energy photons, known as the signal and idler photons. 1 Energy Conservation The energy of the pump photon equals the sum of the energies of the signal and idler photons. \[ \boxed{\hbar\omega_p=\hbar\omega_s+\hbar\omega_i} \] \[ \boxed{\omega_p=\omega_s+\omega_i} \] ωₚ Pump angular frequency ...

SRAM, DRAM, EPROM, MRAM, and DDRAM Explained

Computer Fundamentals Types of Memory and Their Technologies Understand the fundamental relationship between different types of computer memory and the technologies used to implement them. Fundamental Matching Memory type, technology, and key characteristics Memory Type Technology Key Characteristic Cache Memory SRAM Very fast; stores frequently accessed data Main Memory DRAM Holds programs and data currently in use Au...

The cutoff frequency (in GHz) for the dominant TE10 mode of an air-filled rectangular waveguide of ...

  Q. The cutoff frequency (in GHz) for the dominant TE10 mode of an air-filled rectangular waveguide of inner dimension 0.28 inch×0.14 inch is __. (rounded off to two decimal places). Given Information Waveguide dimensions = 0.28 inch × 0.14 inch Wider dimension (a) = 0.28 inch Smaller dimension (b) = 0.14 inch Medium = Air Dominant mode = TE 10 Speed of light (c) = 3 × 10 8 m/s Step 1: Cutoff Frequency Formula The cutoff frequency of a rectangular waveguide is: f c = (c / 2) √[(m/a) 2 + (n/b) 2 ] For the dominant TE 10 mode: m = 1, n = 0 f c = c / 2a Step 2: Convert Inch into Meter We know that 1 inch = 0.0254 meter. a = 0.28 × 0.0254 a = 0.007112 m ...