MATMAGPHI

Scicos Block
fr - eng

##
MATMAGPHI Complex to Magnitude and Angle Conversion

### Contents

- MATMAGPHI Complex to Magnitude and Angle Conversion
  - Palette
  - Description
  - Dialog box
  - Default properties
  - Interfacing function
  - Computational function
  - See also
  - Authors

### Palette

- Matrix - Matrix operation palette

### Description

MATMAGPHI Block has two types of decomposotions.
When the type is set to one, the block converts a complex number to the magnitude and the radian angle, in this case the input is complex and the outputs are real double. If the input is real double, the angle will be zero or PI and the magnitude will be equal to the absolute of the input number.
When the type is set to two, the block outputs a complex number given the magnitude and the radian angle. In this case the inputs are real double and the output is complex.

### Dialog box

- decomposition type (1=Complex2MAG&amp;PHI 2=MAG&amp;PHI2Complex)
  It indicates the rule of the conversion.
  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_abs

### Interfacing function

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

### Computational function

- SCI/routines/scicos/matz_abs.c [view code]
- SCI/routines/scicos/matz_absc.c [view code]

### See also

- MATZREIM - Complex decomposition (Scicos Block)

### Authors

Fady NASSIF INRIA