Complex to Real-Imag
Outputs the real and imaginary parts of the complex input signal.
blockType: ComplexToRealImag
Path in the library:
|
Description
Block Complex to Real-Imag outputs the real and/or imaginary part of the input signal, depending on the parameter setting Output. 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 output signals 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 parameters Output.
Ports
Output
#
Re
—
output signal
scalar
| vector
| matrix
Details
The output signal is the actual component of the input signal.
Dependencies
To use this port, set the parameters to Output value Real and imag
or Real
Data types |
|
Complex numbers support |
Yes |
#
Im
—
output signal
scalar
| vector
| matrix
Details
The output signal is the imaginary component of the input signal.
Dependencies
To use this port, set the parameters to Output value Real and imag
or Imag
.
Data types |
|
Complex numbers support |
Yes |
Input
#
u
—
input signal
scalar
| vector
| matrix
Details
A complex input signal which a unit processes and whose real and/or imaginary part it outputs.
Data types |
|
Complex numbers support |
Yes |
Parameters
Main
#
Output —
type of output: actual and/or imaginary part
Real
| Imag
| Real and imag
Details
Specifies whether the unit outputs the real part, imaginary part, or both.
Values |
|
Default value |
|
Program usage name |
|
Tunable |
No |
Evaluatable |
No |