Main Content

Phase/Frequency Offset

Apply phase and frequency offsets to complex baseband signal

  • Phase/Frequency Offset block

Libraries:
Communications Toolbox / RF Impairments Correction
Communications Toolbox / RF Impairments and Components

Description

The Phase/Frequency Offset block applies phase and frequency offsets to a complex signal.

This icon shows the block with all ports enabled.Phase/Frequency Offset block with optional frequency offset input port

Examples

expand all

The model applies phase and frequency offsets to a 16-ary quadrature amplitude modulation (16-QAM) signal. The Phase/Frequency Offset block applies phase and frequency offsets to the input signal based on parameter settings specified in the Model Parameters block. The effects of updating the offset settings are illustrated by constellation diagrams of a 16-QAM signal.

This constellation diagram shows the 16-QAM constellation with no phase or frequency offset impairing the modulated signal. The constellation diagram shows symbols with no impairments.

Modulation order: 16
Sample time: 1.00e-03
Phase Offset (deg): 0.00
Frequency Offset (Hz): 0.00

A phase offset impairs each point in the constellation, causing a rotation in the counterclockwise direction for a positive phase offset. The constellation shows the signal impaired by these settings.

Phase Offset (deg): 20.00
Frequency Offset (Hz): 0.00

A frequency offset changes the angles of points in the constellation linearly over time, causing points in the constellation to shift radially in the counterclockwise direction for a positive frequency offset. Although the points are radially shifted, their magnitude is unchanged. The constellation shows the signal impaired by these settings.

Phase Offset (deg): 0.00
Frequency Offset (Hz): 0.50

Apply both phase and frequency offset. The constellation shows the signal impaired by these settings.

Phase Offset (deg): 20.00
Frequency Offset (Hz): 0.50

Ports

Input

expand all

Complex signal, specified as a scalar, vector, or matrix. The port is unnamed until you enable the Frequency offset from port parameter.

Data Types: double | single
Complex Number Support: Yes

Frequency offset, specified as a scalar, a vector with the same number of rows or columns as the input signal, or a matrix with the same dimensions as the input signal. For more information, see Interdependent Parameter-Port Dimensions.

Dependencies

To enable this port, select the Frequency offset from port parameter.

Data Types: double | single

Output

expand all

Output signal, returned as a scalar, vector, or matrix. This output is the same dimension and data type as the input signal.

Parameters

expand all

To edit block parameters interactively, use the Property Inspector. From the Simulink® Toolstrip, on the Simulation tab, in the Prepare gallery, select Property Inspector.

Phase offset in degrees, specified as a scalar, vector, or matrix.

If Phase offset (deg) and Frequency offset (Hz) are both nonscalar, they must be the same size.

Tunable: Yes

Select this parameter to add the Frq port.

  • When you select this parameter, the Frq port specifies the frequency offset.

  • When you clear this parameter, the Frequency offset (Hz) parameter specifies the frequency offset.

Frequency offset in hertz, specified as a scalar, a vector with the same number of rows or columns as the input signal, or a matrix with the same dimensions as the input signal. For more information, see Interdependent Parameter-Port Dimensions.

If Phase offset (deg) and Frequency offset (Hz) are both nonscalar, they must be the same size.

Tunable: Yes

Dependencies

To enable this port, clear the Frequency offset from port parameter.

Block Characteristics

Data Types

double | single

Multidimensional Signals

no

Variable-Size Signals

no

More About

expand all

Algorithms

If the input signal is u(t), then the output signal is

y(t)=u(t)(cos(2π0tf(τ)dτ+φ(t))+jsin(2π0tf(τ)dτ+φ(t))),

where f(t) is the frequency offset, and φ(t) is the phase offset.

The discrete-time output is given by

y(0)=u(0)(cos(φ(0))+jsin(φ(0))) and y(i)=u(i)(cos(2πn=0i1f(n)Δt+φ(i))+jsin(2πn=0i1f(n)Δt+φ(i))),

where i > 0, and Δt is the sample time.

Extended Capabilities

Version History

Introduced before R2006a