numdims (MathScript RT Module Function)
- Updated2023-03-14
- 1 minute(s) read
numdims (MathScript RT Module Function)
Owning Class: info
Requires: Control Design and Simulation Module and MathScript RT Module
Syntax
dim = numdims(SysIn)
Legacy Name: ndims
Description
Calculates the number of dimensions of a system model. The number of dimensions also is the order of the model.
Inputs
| Name | Description |
|---|---|
| SysIn | Specifies a linear time-invariant (LTI) model in transfer function, zero-pole-gain, or state-space form. |
Outputs
| Name | Description |
|---|---|
| dim | Returns the number of dimensions of the SysIn model. dim is an integer scalar. |
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
A = [-1, 0.1; 0.2, -2]
B = [0; 1]
C = [1, 0]
D = 0
SysIn = ss(A, B, C, D)
dim = numdims(SysIn)