Main Content

Complex Phase Shift

Apply complex phase shift to complex signal

  • Complex Phase Shift block

Libraries:
Communications Toolbox / Utility Blocks

Description

The Complex Phase Shift block applies a complex phase shift to a complex signal. This block independently processes each pair of corresponding elements.

Examples

expand all

The model applies QPSK modulation, and then applies a phase shift to a signal. Calculate the phase difference and plot the constellation of the signal before and after the phase shift.

The Complex Phase Shift block applies a 30 degree phase shift to a QPSK modulated signal. The Complex Phase Difference block determines the phase difference. A To Workspace (Simulink) block passes the calculated phase difference to the workspace. A Constellation Diagram block plots the signal constellation before and after the phase shift.

The phase difference is calculated from the second input to the first input.

The calculated phase difference is: -30.0000

Ports

Input

expand all

Input signal, specified as a scalar, column vector, or matrix.

Note

This block processes and outputs complex signals. Real values at the input port are type cast to complex values with +j0 complex components.

Data Types: double | single
Complex Number Support: Yes

Phase shift in radians, specified as a scalar, column vector, or matrix. If the phase shift is nonscalar, it must have the same dimension as the signal at port In.

Data Types: double

Output

expand all

Phase-shifted signal, returned as a complex-valued scalar, column vector, or matrix. This output is the same dimension and data type as the input signal.

Block Characteristics

Data Types

double | single

Multidimensional Signals

no

Variable-Size Signals

no

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Version History

Introduced before R2006a