filt
Create discrete-time transfer function model from data in DSP format.
Inputs
Numerator or cell of numerators. Each numerator must be 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 accepted as well.
Denominator or cell of denominators. Each denominator must be 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 accepted as well.
Sampling time in seconds. If tsam is not specified, default value -1 (unspecified) is taken.
Optional pairs of properties and values.
Type set (filt)
for more information.
Outputs
Discrete-time transfer function model.
Option Keys and Values
Numerator. See ’Inputs’ for details.
Denominator. See ’Inputs’ for details.
String containing the transfer function variable.
Logical. True for negative powers of the transfer function variable.
Sampling time. See ’Inputs’ for details.
The name of the input channels in sys.
Cell vector of length m containing strings.
Default names are {'u1', 'u2', ...}
The name of the output channels in sys.
Cell vector of length p containing strings.
Default names are {'y1', 'y2', ...}
Struct with input group names as field names and vectors of input indices as field values. Default is an empty struct.
Struct with output group names as field names and vectors of output indices as field values. Default is an empty struct.
String containing the name of the model.
String or cell of string containing comments.
Any data type.
Example $$H(z^{-1}) = \frac{3z^{-1}}{1 + 4z^-1 + 2z^-2}$$
octave:1> H = filt ([0, 3], [1, 4, 2]) Transfer function 'H' from input 'u1' to output ... 3 z^-1 y1: ------------------- 1 + 4 z^-1 + 2 z^-2 Sampling time: unspecified Discrete-time model. |
See also: tf
Source Code: filt