| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Communications Toolbox |
| Contents | Index |
| Learn more about Communications Toolbox |
y = dpskmod(x,M)
y = dpskmod(x,M,phaserot)
y = dpskmod(x,M,phaserot,symbol_order)
Warning This function is obsolete and may be removed in the future. We strongly recommend that you use modem.dpskmod instead. |
y = dpskmod(x,M) outputs the complex envelope y of the modulation of the message signal x using differential phase shift keying modulation. M is the alphabet size and must be an integer. The message signal must consist of integers between 0 and M-1. If x is a matrix with multiple rows and columns, the function processes the columns independently.
y = dpskmod(x,M,phaserot) specifies the phase rotation of the modulation in radians. In this case, the total phase shift per symbol is the sum of phaserot and the phase generated by the differential modulation.
y = dpskmod(x,M,phaserot,symbol_order) specifies how the function assigns binary words to corresponding integers. If symbol_order is set to 'bin' (default), the function uses a natural binary-coded ordering. If symbol_order is set to 'gray', it uses a Gray-coded ordering.
The example below plots the output of the dpskmod function. The image shows the possible transitions from each symbol in the DPSK signal constellation to the next symbol.
M = 4; % Use DQPSK in this example, so M is 4. x = randint(500,1,M,13); % Random data y = dpskmod(x,M,pi/8); % Modulate using a nonzero initial phase. plot(y) % Plot all points, using lines to connect them.

For another example that uses this function, see Example: Curve Fitting for an Error Rate Plot.
dpskdemod, pskmod, pskdemod, Modulation
![]() | dpskdemod | dvbs2ldpc | ![]() |

Learn how to apply early verification to your development process through these technical resources.
How much time do you spend on testing to ensure implementation meets system-level requirements?
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |