Using Simulink | ![]() ![]() |
Convert a magnitude and/or a phase angle signal to a complex signal.
Library
Description
The Real-Imag to Complex block converts real and/or imaginary inputs to a complex-valued output signal.
The inputs may be both arrays (vectors or matrices) of equal dimensions, or one input may be an array and the other a scalar. If the block has an array input, the output is a complex array of the same dimensions. The elements of the real input are mapped to real parts of the corresponding complex output elements. The imaginary input is similarly mapped to the imaginary parts of the complex output signals. If one input is a scalar, it is mapped to the corresponding component (real or imaginary) of all the complex output signals.
The input signals and real or imaginary output parameter can be of any data type. The output is of the same type as the input or parameter that determines the output.
Data Type Support
Parameters and Dialog Box
Characteristics
Direct Feedthrough |
Yes |
Sample Time |
Inherited from driving block |
Scalar Expansion |
Of the input when the function requires two inputs |
Dimensionalized |
Yes |
Zero Crossing |
No |
![]() | Rate Limiter | Relational Operator | ![]() |