Transfer function model conversion to State-space model.
Transfer function model conversion to State-space model.
tf2ss converts the model for a transfer function to state-space representation
tf2ss(num, den)
Arguments
num: A numeric vector containing the coefficients of the
den: A numeric vector containing the coefficients of the
Returns
Returns an object of 'ss' class.
Details
tf2ss converts a model object for a transfer function to a state-space model, Where num is the numerator and den is the denominator of the transfer function and sys is a transfer function object
Another possible call is tf2ss(sys) where sys is object of transfer-function model.
Examples
tf2ss(tf(1, c(1,2,1)))## Not run: OR sys <- tf(1, c(1,2,1))tf2ss(sys)## Not run: OR sys2 <- tf2ss(1, c(1,2,1))