MATZREIM

Scicos Block
fr - eng

##
Complex decomposition

### Contents

- Complex decomposition
  - Palette
  - Description
  - Dialog box
  - Default properties
  - Interfacing function
  - Computational function
  - See also
  - Authors

### Palette

- Matrix - Matrix operation palette

### Description

This block decomposes a complex number by separating the real and imaginary parts or compose a complex number by joining the two parts. The user can select even to separate or to join real and imaginary part by setting the decomposition type to 1 or 2. When it is set to 1, the input is a complex matrix and the outputs are the real and imaginary parts of the input. When it set to 2, The inputs are two real matrices, the output is a complex number with real part the first input and imaginary part the second input.

### Dialog box

- decomposition type (1=Complex2Real&amp;Imag 2=Real&amp;Imag2Complex)
  Indicates the type to use for the decomposition. See the description part for more information.
  Properties : Type 'vec' of size 1.

### Default properties

- always active: no
- direct-feedthrough: yes
- zero-crossing: no
- mode: no
- regular inputs:
  - port 1 : size [-1,-2] / type 2
- regular outputs:
  - port 1 : size [-1,-2] / type 1
  - port 2 : size [-1,-2] / type 1
- number/sizes of activation inputs: 0
- number/sizes of activation outputs: 0
- continuous-time state: no
- discrete-time state: no
- object discrete-time state: no
- name of computational function: matz_reim

### Interfacing function

- SCI/macros/scicos_blocks/MatrixOp/MATZREIM.sci [view code]

### Computational function

- SCI/routines/scicos/matz_reim.c [view code]
- SCI/routines/scicos/matz_reimc.c [view code]

### See also

- MATMAGPHI - MATMAGPHI Complex to Magnitude and Angle Conversion (Scicos Block)

### Authors

Fady NASSIF INRIA