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.
sys can also be a real-valued gain matrix which is then
interpreted as static gain system.
Inputs
- sys
- Any type of LTI model or a real-valued matrix which is
interpreted as continous-time static gain.
- "v", "vector"
- For SISO models, return num and den directly as column vectors
instead of cells containing a single column vector.
- "t", "tfpoly"
- Return the polynomials as tfpoly class.
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.
Source Code:
tfdata