randss (MathScript RT Module Function)
- Updated2023-03-14
- 1 minute(s) read
randss (MathScript RT Module Function)
Owning Class: construct
Requires: Control Design and Simulation Module and MathScript RT Module
Syntax
SysOutSS = randss(n)
SysOutSS = randss(n, r)
SysOutSS = randss(n, r, m)
Legacy Name: rss
Description
Generates a continuous random linear time-invariant (LTI) system model in state-space form. The model is of an order you specify. You also can specify the number of inputs and outputs of the model.
Inputs
| Name | Description |
|---|---|
| n | Specifies the order of the state matrix A of the SysOutSS model. n is the number of states and the dimensions of A. n is an integer scalar. |
| r | Specifies the number of outputs from the resulting state-space model. The default value is 1. r is an integer scalar. |
| m | Specifies the number of inputs to the resulting state-space model. The default value is 1. m is an integer scalar. |
Outputs
| Name | Description |
|---|---|
| SysOutSS | Returns an n-th-order continuous LTI model in state-space form. This model has n states, r outputs, and m inputs. |
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
n = 4
m = 2
r = 3
SysOutSS = randss(n, r, m)