Categories &

Functions List

Function Reference: @lti/filtdata

Function File: [num, den, tsam] = filtdata (sys)
Function File: [num, den, tsam] = filtdata (sys, "vector")

Access discrete-time transfer function data in DSP format. Argument sys is not limited to transfer function models. If sys is not a transfer function, it is converted automatically.

Inputs

sys

Any type of discrete-time LTI model.

"v", "vector"

For SISO models, return num and den directly as column vectors instead of cells containing a single column vector.

Outputs

num

Cell of numerator(s). Each numerator is a row vector containing the coefficients of the polynomial in ascending powers of z^-1. num{i,j} contains the numerator polynomial from input j to output i. In the SISO case, a single vector is possible as well.

den

Cell of denominator(s). Each denominator is a row vector containing the coefficients of the polynomial in ascending powers of z^-1. den{i,j} contains the denominator polynomial from input j to output i. In the SISO case, a single vector is possible as well.

tsam

Sampling time in seconds. If tsam is not specified, -1 is returned.

Source Code: @lti/filtdata