ord2 (Control Design and Simulation Module, MathScript Function)
Member of the construct class.
Syntax
[A, B, C, D] = ord2(wn, dr)
[num, den] = ord2(wn, dr)
Description
Constructs the components of a second-order system model based on a damping ratio and natural frequency 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 |
wn | Specifies the natural frequency of the resulting model. wn is a real scalar. |
dr | Specifies the damping ratio of the resulting model. dr is a real scalar. |
Outputs
Name | Description |
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 m input matrix of the resulting model, where m is the number of inputs. B is a real matrix. |
C | Returns the r x n output matrix of the resulting model, where r is the number of outputs. C is a real matrix. |
D | Returns the r x m direct transmission matrix of the resulting model. D is a real matrix. |
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. |
Examples
dr = 0.5wn = 20
[num, den] = ord2(wn, dr)
SysTF = tf(num, den)
[A, B, C, D] = ord2(wn, dr)
SysSS = ss(A, B, C, D)