ord1 (Control Design and Simulation Module, MathScript Function)
Member of the construct class.
Syntax
SysOutTF = ord1(K, tau, delay)
[num, den] = ord1(K, tau, delay)
[A, B, C] = ord1(K, tau, delay)
[A, B, C, D] = ord1(K, tau, delay)
Description
Constructs the components of a first-order system model based on a gain, time constant, and delay that you specify. You can use this function to create either a state-space model or a transfer function model, depending on the output parameters you specify.
Inputs
Name | Description |
K | Specifies the gain matrix. K is a real matrix. |
tau | Specifies the time constant, in seconds, which is the time required for the model output to reach 63% of its final value. The default value is 0. |
delay | Specifies the response delay of the model, in seconds. The default value is 0. |
Outputs
Name | Description |
SysOutTF | Returns a transfer function model with gain K, time constant tau, and the specified delay. This model is single-input single-output (SISO). |
num | Returns the coefficients of the numerator polynomial function of the resulting model. num is a real vector. |
den | Returns the coefficients of the denominator polynomial function of the resulting model. den is a real vector. |
A | Returns the n x n state matrix of the resulting model, where n is the number of states. A is a real matrix. |
B | Returns the n x 1 input matrix of the resulting model.B is a real vector. |
C | Returns the 1 x n output matrix of the resulting model. C is a real vector. |
D | Returns the direct transmission value of the resulting model. D is a real scalar. |
Examples
K = 0.5;tau = 1.5;
SysOutTF = ord1(K, tau);