This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Query model order


NS = order(sys)


NS = order(sys) returns the model order NS. The order of a dynamic system model is the number of poles (for proper transfer functions) or the number of states (for state-space models). For improper transfer functions, the order is defined as the minimum number of states needed to build an equivalent state-space model (ignoring pole/zero cancellations).

order(sys) is an overloaded method that accepts SS, TF, and ZPK models. For LTI arrays, NS is an array of the same size listing the orders of each model in sys.


order does not attempt to find minimal realizations of MIMO systems. For example, consider this 2-by-2 MIMO system:

h = [1, 1/(s*(s+1)); 1/(s+2), 1/(s*(s+1)*(s+2))];
ans =


Although h has a 3rd order realization, order returns 6. Use


to find the minimal realization order.

See Also


Introduced in R2012a