Modulate signal using M-PSK method
The PSKModulator
System object™ modulates using the M-ary phase shift keying (M-PSK) method. The output is a
baseband representation of the modulated signal.
To modulate a signal by using the M-PSK method:
Create the comm.PSKModulator
object and set its properties.
Call the object with arguments, as if it were a function.
To learn more about how System objects work, see What Are System Objects?.
creates a
modulator System object
mpskmod
= comm.PSKModulatormpskmod
, that modulates the input signal using the M-ary phase shift
keying (M-PSK) method.
creates an M-PSK modulator object mpskmod
= comm.PSKModulator(Name
,Value
)mpskmod
, 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
).
creates a M-PSK modulator object mpskmod
= comm.PSKModulator(M
,phase
,Name
,Value
)mpskmod
using the modulation order
specified in M
. The object's PhaseOffset
property is set to phase
, and the other specified properties are set
to the specified values.
modulates the input signal by using the M-PSK method. The output is the modulated M-PSK
baseband signal.mpsksignal
= mpskmod(insignal
)
To use an object function, specify the
System object as the first input argument. For
example, to release system resources of a System object named obj
, use
this syntax:
release(obj)
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.