Engee documentation

Real-Imag to Complex

Converts a real and/or imaginary input signal into a complex output signal.

blockType: RealImagToComplex

Path in the library:

/Basic/Math Operations/Real-Imag to Complex

Description

Unit Real-Imag to Complex converts a real and/or imaginary input signal into a complex output signal.

Both inputs of the block can be arrays (vectors or matrices) of the same dimensionality, or one input can be an array and the other a scalar. The output signal will have the dimensions resulting from the broadcast mechanism - the dimensionality of the smaller data array will be expanded to the dimensionality of the larger one to inherit the dimensionality correctly.

The elements of the real (actual) input are mapped to the real parts of the corresponding elements of the complex output. An imaginary input is similarly mapped to the imaginary parts of the complex outputs. If one of the inputs is a scalar, it is mapped to the corresponding component (real or imaginary) of all complex output signals.

Ports

Input

# Re — real part of the input signal
scalar | vector | matrix | array

Details

A real value to be converted into a complex output signal specified as a scalar, vector or matrix.

Dependencies

To enable this port, set the parameters to Input value Real or Real and imag.

Data types

Float16, Float32, Float64, Int8, Int16, Int32, Int64, UInt8, UInt16, UInt32, UInt64, Bool, .

Complex numbers support

Yes

# Im — imaginary part of the input signal
scalar | vector | matrix | array

Details

An imaginary quantity to be converted into a complex output signal, given as a scalar, vector or matrix.

Dependencies

To enable this port, set the parameters to Input value Imag or Real and imag.

Data types

Float16, Float32, Float64, Int8, Int16, Int32, Int64, UInt8, UInt16, UInt32, UInt64, Bool, .

Complex numbers support

Yes

Output

# u — complex output signal
scalar | vector | matrix

Details

An output complex signal formed from real and imaginary input quantities.

Data types

Float64.

Complex numbers support

Yes

Parameters

Main

# Input — input type: real and/or imaginary part
Real | Imag | Real and imag

Details

Specify the type of input: actual input, imaginary input, or both.

Values

Real | Imag | Real and imag

Default value

Real and imag

Program usage name

Input

Tunable

No

Evaluatable

No

# Real part — real part of the complex output
Scalar / array of real numbers

Details

Specify the imaginary value to be used in converting the input signal to a complex output signal.

Dependencies

To enable this parameter, set the parameters to Input value Imag.

Default value

0

Program usage name

RealPart

Tunable

No

Evaluatable

Yes

# Imag part — imaginary part of the complex output
Scalar / array of real numbers

Details

Specify the imaginary value to be used when converting an input signal to a complex output signal.

Dependencies

To enable this parameter, set the parameters to Input value Real.

Default value

0

Program usage name

ImagPart

Tunable

No

Evaluatable

Yes