## Magnitude and Phase of a Transfer Function (mag_phase)

version 2.0.2 (189 KB) by
Magnitude and phase of a transfer function (i.e. linear system) at a specific point in the frequency domain.

Updated 09 Oct 2021

From GitHub

# `mag_phase`

Magnitude and phase of a transfer function (i.e. linear system) at a specific point in the frequency domain.

## Syntax

`[mag,phase] = mag_phase(sys,x)`
`[mag,phase] = mag_phase(sys,x,units)`

## Description

`[mag,phase] = mag_phase(sys,x)` returns the magnitude, `mag`, and phase, `phase`, of the linear system, `sys`, at a desired location `x` in the frequency domain. If `sys` represents a continuous-time transfer function , then `x` corresponds to a point . If `sys` represents a discrete-time transfer function , then `x` corresponds to a point . By default, the phase is returned in units of degrees.

`[mag,phase] = mag_phase(sys,x,units)` does the same as the syntax above, but returns the phase in degrees if `units` is specified as `'deg'`, and in radians if `units` is specified as `'rad'`.

### Cite As

Tamas Kis (2022). Magnitude and Phase of a Transfer Function (mag_phase) (https://github.com/tamaskis/mag_phase-MATLAB/releases/tag/v2.0.2), GitHub. Retrieved .

##### MATLAB Release Compatibility
Created with R2021a
Compatible with any release
##### Platform Compatibility
Windows macOS Linux