Documentation

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.

oqpskmod

Offset quadrature phase shift keying modulation

Syntax

  • y = oqpskmod(x)
    example
  • y = oqpskmod(x,ini_phase)

Description

example

y = oqpskmod(x) modulates the input signal, x, using offset quadrature phase shift keying (OQPSK). The function upsamples by a factor of 2, because OQPSK does not permit an odd number of samples per symbol.

y = oqpskmod(x,ini_phase) specifies the initial phase of the modulated signal.

Examples

collapse all

Generate random 4-ary data.

dataIn = randi([0 3],100,1);

OQPSK modulate the data, and pass it through an AWGN channel.

txSig = oqpskmod(dataIn);
rxSig = awgn(txSig,10);

OQPSK demodulate the received signal. Determine the number of symbol errors.

dataOut = oqpskdemod(rxSig);
numErrs = symerr(dataIn,dataOut)
numErrs =

     0

Input Arguments

collapse all

Input signal, specified as a vector or matrix of positive integers. The elements of x must have values in the range of [0, 3].

Data Types: double | single

Initial phase of the OQPSK modulation, specified in radians as a real scalar.

Example: pi/4

Data Types: double | single

Output Arguments

collapse all

Complex baseband representation of an OQPSK-modulated output signal, returned as a vector or matrix. The columns of y represent independent channels.

Data Types: double | single
Complex Number Support: Yes

Introduced before R2006a

Was this topic helpful?