dpskmod
Differential phase shift keying modulation
Description
Examples
View Signal Trajectory of DPSK-Modulated Signal
Plot the output of the dspkmod
function to view the possible transitions between DPSK symbols.
Set the modulation order to 4 to model DQPSK modulation.
M = 4;
Generate a sequence of 4-ary random symbols.
x = randi([0 M-1],500,1);
Apply DQPSK modulation to the input symbols.
y = dpskmod(x,M,pi/8);
Specify a constellation diagram object to display a signal trajectory diagram and without displaying the corresponding reference constellation. Display the trajectory.
cd = comm.ConstellationDiagram( ... ShowTrajectory=true, ... ShowReferenceConstellation=false); cd(y)
Input Arguments
x
— Input signal
vector | matrix
Input signal, specified as a vector or matrix of positive integers.
The elements of x
must have values in the range
of [0, M
– 1].
Data Types: double
M
— Modulation order
integer power of two
Modulation order, specified as an integer power of two.
Example: 2
| 4
| 16
Data Types: double
phaserot
— Phase rotation
0 (default) | scalar | []
Phase rotation of the DPSK modulation, specified in radians
as a real scalar. The total phase shift per symbol is the sum of phaserot
and
the phase generated by the differential modulation.
If you specify phaserot
as empty, then dpskmod
uses
a phase rotation of 0 degrees.
Example: pi/4
Data Types: double
symorder
— Symbol order
'bin'
(default) | 'gray'
Symbol order, specified as 'bin'
or 'gray'
.
This argument specifies how the function assigns binary vectors to
corresponding integers.
If
symorder
is'bin'
, the function uses binary-coded ordering.If
symorder
is'gray'
, the function uses a Gray-coded ordering.
Data Types: char
Output Arguments
y
— DPSK-modulated output signal
vector | matrix
Complex baseband representation of a DPSK-modulated output signal, returned as vector or matrix of complex values. The columns represent independent channels.
Note
An initial phase rotation of 0 is used in determining the first
element of the output y
(or the first row of
y
if it is a matrix with multiple rows),
because two successive elements are required for a differential
algorithm.
Extended Capabilities
C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.
Version History
Introduced before R2006a
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)