Doubt about QPSK signal

27 views (last 30 days)
charu shree
charu shree on 4 Jul 2023
Commented: charu shree on 5 Jul 2023
Hello all, In my research work I came across the following : " Generate N symbols of QPSK signal where and "
My query is: QPSK has 4 symbols so how could we generate a QPSK signal with 256 symbols in MATLAB.
Any help in this regard is highly appreciated.

Accepted Answer

Saurabh
Saurabh on 4 Jul 2023
In QPSK (Quadrature Phase Shift Keying), each symbol represents 2 bits of information. Since QPSK has 4 symbols, it can represent a total of 4 possible combinations of 2 bits: 00, 01, 10, and 11.
If your research work mentions generating a QPSK signal with 256 symbols in MATLAB, it may not be referring to the number of distinct symbols but rather the number of times those symbols are repeated in the signal. This could be done for various reasons, such as testing or simulation purposes.
To generate a QPSK signal with 256 symbols in MATLAB, you can follow these steps:
1. Define a vector of 2-bit symbols, where each symbol is represented by a decimal value from 0 to 3. For example, you can generate a random sequence of symbols using the `randi` function:
symbols = randi([0 3], 1, 256);
2. Map each symbol to its corresponding QPSK constellation point. You can use a lookup table or predefined mapping scheme to map the symbols to complex values. For example:
constellation = [1+1i, -1+1i, -1-1i, 1-1i];
signal = constellation(symbols + 1);
3. The `signal` variable now contains the QPSK signal with 256 symbols. You can further process or use this signal in your research work as needed.
Note that the number of symbols in a QPSK signal is typically a power of 2 (e.g., 2, 4, 8, 16, etc.). Generating a QPSK signal with 256 symbols may not align with the conventional usage of QPSK, but it can still be done for specific purposes or experimental scenarios.
  1 Comment
charu shree
charu shree on 5 Jul 2023
Thank u so much for your detailed answer.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!