size (Control Design and Simulation Module, MathScript Function)

LabView Control Design MathScript Functions

size (Control Design and Simulation Module, MathScript Function)

Member of the info class.

Syntax

numIO = size(SysIn)

num = size(SysIn, sizetype)

Description

Returns the number of states, inputs, and/or outputs of a system model.

Examples

Inputs

Name Description
SysIn Specifies a linear time-invariant (LTI) model in transfer function, zero-pole-gain, or state-space form.
sizetype Specifies the size type you want this function to return. If you do not specify a value, this function returns both the number of inputs and the number of outputs. sizetype takes the following integer or string values:

1 Specifies that this function returns the number of outputs from the model.
2 Specifies that this function returns the number of inputs to the model.
'order' Specifies that this function returns the order of the model, which also is the number of states. This option is valid only for state-space models.

Outputs

Name Description
numIO Returns the number of inputs and outputs of the SysIn model. numIO is an integer vector. This output is valid only if you do not specify a value for the sizetype input.
num Returns the number of states, inputs, or outputs, depending on the value you specify for the sizetype input. num is an integer scalar. This output is valid only if you specify a value for the sizetype input.

Examples

SysIn = rss(4, 5, 6)
numIO = size(SysIn)
num = size(SysIn, 2)

Related Topics

balreal
minreal
modred