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

Access transfer function data. 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 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 descending powers of the transfer function variable. 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 descending powers of the transfer function variable. 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 sys is a continuous-time model, a zero is returned.

Package: control