Please note that the recommended version of Scilab is 6.1.1. This page might be outdated.

However, this page did not exist in the previous stable version.

# phasemag

phase and magnitude computation

### Syntax

[phi,db]=phasemag(z [,mod])

### Arguments

- z
matrix or row vector of complex numbers.

- mod
character string

- mod='c'
"continuous" representation between -infinity and +360 degrees (default)

- mod='m'
representation between -360 and 0 degrees

- phi
phases (in degree) of

`z`

.- db
magnitude (in Db)

### Description

`phasemag`

computes the phases and magnitudes of the entries
of a complex matrix. For `mod='c'`

`phasemag`

computes `phi(:,i+1)`

to minimize the distance with
`phi(:,i)`

, i.e. it tries to obtain a "continuous
representation" of the phase.

To obtain the phase between -%pi and %pi use
`phi=atan(imag(z),real(z))`

## Comments

Add a comment:Please login to comment this page.