Complex to Real-Imag
Outputs the real and imaginary parts of the complex input signal.
Description
The Complex to Real-Imag block outputs the real and/or imaginary part of the input signal, depending on the setting of the Output parameter. Real outputs have the same data type as the complex input. The input can be an array (vector or matrix) of complex signals, in which case the outputs are arrays of the same dimension. A real array contains real (real) parts of the corresponding complex input elements, an imaginary array similarly contains imaginary parts of the input elements.
The block icon and the number of output ports change depending on the value of the Output parameter.
Ports
Input
Port_1 - input signal
scalar
| vector
| matrix
Complex input signal, which the unit processes and the real and/or imaginary part of which it outputs.
Data types: Float16
, Float32
, Float64
, Int8
, Int16
, Int32
, Int64
, Int128
, UInt8
, UInt16
, UInt32
, UInt64
, UInt128
, Fixed
, Bool
.
Support for complex numbers: Yes
Output
Port_1 - output signal
scalar
| vector
| matrix
Output signal - real and/or imaginary component of the input signal.
The output component is specified by the Output parameter.
Data types: Float16
, Float32
, Float64
, Int8
, Int16
, Int32
, Int64
, Int128
, UInt8
, UInt16
, UInt32
, UInt64
, UInt128
, Fixed
, Bool
.
Port_2 - output signal
scalar
| vector
| matrix
The output signal is the imaginary component of the input signal.
Dependencies
To use this port, set the Output parameter to Real and imag
.
Data types: Float16
, Float32
, Float64
, Int8
, Int16
, Int32
, Int64
, Int128
, UInt8
, UInt16
, UInt32
, UInt64
, UInt128
, Fixed
, Bool
.