FUNCTION REFERENCE
tf
Create a real-coefficient transfer-function value.
Create a real-coefficient transfer-function value.
Syntax
G = tf(num, den, Ts); s = tf('s'); z = tf('z', Ts); G = tf(sys)`G=tf(num,den[,Ts])`, `s=tf('s')`, `z=tf('z',Ts)`, `G=tf(sys)`.
Coefficients are finite real rows in descending powers, or ascending powers
with Variable 'z^-1' or 'q^-1'. For MIMO models, supply output-by-input cells
of coefficient rows. A numeric row is shared across all channels if the
other argument is a cell array. Numerator and Denominator are returned as
cells. Denominators keep their scale, and numerators are padded to at least
the corresponding denominator length.
The constructors tf, zpk and ss accept trailing property name-value pairs.
Use dot syntax, get(sys,'Property'), and set(sys,'Property',value). Use
copy=set(sys,...) to return a modified value. Common properties include Ts,
Variable, InputName, OutputName, Name, Notes, and UserData. Ts is zero for
continuous time, positive for a specified sample period, or -1 for unspecified
discrete time. Continuous variables are 's' and 'p'. Discrete variables are
'z', 'q', 'z^-1', and 'q^-1'. Signal names are stored as column cells.
InputDelay, OutputDelay and IODelay are finite, nonnegative SISO delays in
seconds or in whole sample periods for discrete time.
Use sys(outputs,inputs) to select channels by scalar, vector, or colon.
Use sys(i,j)=rhs to replace a channel in a tf or zpk model with a SISO model.
Copies have value semantics.
Example
G = tf({1,2},{[1 1],[1 2]}); size(G)SISO models support +, -, *, /, unary minus, inv and integer ^ (-64..64),
including scalar numbers. Mixed representations promote ss > zpk > tf.
Polynomials are limited to degree 256. A nonproper model can be stored as tf
but cannot be converted to an ordinary ss realization. Complex coefficients
and arrays of separate LTI models are unsupported. A channel grid can have
up to 4096 ports per axis and 16384 channels.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.