This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

comm.OQPSKModulator System object

Package: comm

Modulate using OQPSK method


The OQPSKModulator object modulates using the offset quadrature phase shift keying method. The output is a baseband representation of the modulated signal.

To modulate a signal using offset quadrature phase shift keying:

  1. Define and set up your OQPSK modulator object. See Construction.

  2. Call step to modulate the signal according to the properties of comm.OQPSKModulator. The behavior of step is specific to each object in the toolbox.

    Note:   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.OQPSKModulator creates a modulator System object, H. This object modulates the input signal using the offset quadrature phase shift keying (OQPSK) method.

H = comm.OQPSKModulator(Name,Value) creates an OQPSK modulator object, 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.OQPSKModulator(PHASE,Name,Value) creates an OQPSK modulator object, H. This object has the PhaseOffset property set to PHASE and the other specified properties set to the specified values.



Phase of zeroth point of constellation from π4

Specify the phase offset of the zeroth point of the constellation shifted from π4, in radians, as a finite, real-valued scalar. The default is 0.


Assume input is bits

Specify whether the input is bits or integers. The default is false. When you set this property to true, the inputs are bit representations of integers between 0 and 3. The input requires a column vector of bit values with length that is an integer multiple of two. When you set this property to false, the input requires a column vector of integer values between 0 and 3.


Data type of output

Specify the output data type as double | single | Custom. The default is double.

 Fixed-Point Properties


constellationCalculate or plot ideal signal constellation
resetReset modulator state
stepModulate using OQPSK method
Common to All System Objects

Create System object with same property values


Expected number of inputs to a System object


Expected number of outputs of a System object


Check locked states of a System object (logical)


Allow System object property value changes


expand all

Create a OQPSK modulator and demodulator pair. Create an AWGN channel object having two bits per symbol.

oqpskmod = comm.OQPSKModulator('BitInput',true);
oqpskdemod = comm.OQPSKDemodulator('BitOutput',true);
channel = comm.AWGNChannel('EbNo',4,'BitsPerSymbol',2);

Create an error rate calculator. Set the ReceiveDelay property to 2 to account for the delay between the modulator and demodulator.

errorRate = comm.ErrorRate('ReceiveDelay',2);

Main processing loop steps:

  • Generate 50 2-bit frames

  • OQPSK modulate

  • Pass through AWGN channel

  • OQPSK demodulate

  • Collect error statistics

for counter = 1:100
    txData = randi([0 1],100,1);
    modSig = oqpskmod(txData);
    rxSig = channel(modSig);
    rxData = oqpskdemod(rxSig);
    errorStats = errorRate(txData,rxData);

Display the error statistics.

ber = errorStats(1)
numErrors = errorStats(2)
numBits = errorStats(3)
ber =


numErrors =


numBits =



This object implements the algorithm, inputs, and outputs described on the OQPSK Modulator Baseband block reference page. The object properties correspond to the block parameters.

Extended Capabilities

Introduced in R2012a

Was this topic helpful?