size (MathScript RT Module Function)
- Updated2023-03-14
- 2 minute(s) read
size (MathScript RT Module Function)
Owning Class: info
Requires: Control Design and Simulation Module and MathScript RT Module
Syntax
numIO = size(SysIn)
num = size(SysIn, sizetype)
Description
Returns the number of states, inputs, and/or outputs of a system model.
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:
|
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. |
Details
The following table lists the support characteristics of this function.
| Supported in the LabVIEW Run-Time Engine | Yes |
| Supported on RT targets | Yes |
| Suitable for bounded execution times on RT | Not characterized |
Examples
SysIn = randss(4, 5, 6)
numIO = size(SysIn)
num = size(SysIn, 2)