Modulate using M-ary PSK method
The PSKModulator
object modulates using the
M-ary phase shift keying method. The output is a baseband representation
of the modulated signal. The M-ary number parameter, M, is the number
of points in the signal constellation.
To modulate a signal using phase shift keying:
Define and set up your PSK modulator object. See Construction.
Call step
to modulate the signal
according to the properties of comm.PSKModulator
.
The behavior of step
is specific to each object in
the toolbox.
Starting in R2016b, instead of using the step
method
to perform the operation defined by the System
object™, you can
call the object with arguments, as if it were a function. For example, y
= step(obj,x)
and y = obj(x)
perform
equivalent operations.
H = comm.PSKModulator
creates a modulator System
object, H
.
This object modulates the input signal using the M-ary phase shift
keying (M-PSK) method.
H = comm.PSKModulator(
creates
an M-PSK modulator object, Name
,Value
)H
, with each specified
property set to the specified value. You can specify additional name-value
pair arguments in any order as (Name1
,Value1
,...,NameN
,ValueN
).
H = comm.PSKModulator(M,PHASE,
creates
an M-PSK modulator object, Name
,Value
)H
. This object has
the ModulationOrder
property set to M
,
the PhaseOffset
property set to PHASE
,
and the other specified properties set to the specified values.
|
Number of points in signal constellation Specify the number of points in the signal constellation as
a positive, integer scalar value. The default is |
|
Phase of zeroth point of constellation Specify the phase offset of the zeroth point of the constellation,
in radians, as a real scalar value. The default is |
|
Assume bit inputs Specify whether the input is bits or integers. When you set this property to
|
|
Constellation encoding Specify how the object maps an integer or group of log2( |
|
Custom constellation encoding Specify a custom constellation symbol mapping vector. This property requires a row or column
vector of size |
|
Data type of output Specify the output data type as |
constellation | Calculate or plot ideal signal constellation |
step | Modulate using M-ary PSK method |
Common to All System Objects | |
---|---|
release | Allow System object property value changes |
The block outputs a baseband signal by mapping input bits or integers to complex symbols according to the following:
This applies when a natural binary ordering is used. Another common mapping is Gray coding, which has the advantage that only one bit changes between adjacent constellation points. This results in better bit error rate performance. For 8-PSK modulation with Gray coding, the mapping between the input and output symbols is shown.
Input | Output |
---|---|
0 | 0 (000) |
1 | 1 (001) |
2 | 3 (011) |
3 | 2 (010) |
4 | 6 (110) |
5 | 7 (111) |
6 | 5 (101) |
7 | 4 (100) |
The corresponding constellation diagram follows.
When the input signal is composed of bits, the block accepts binary-valued inputs that represent integers. The block collects binary-valued signals into groups of log2(M) bits.