mreduce (MathScript RT Module Function)
- Updated2023-03-14
- 2 minute(s) read
mreduce (MathScript RT Module Function)
Owning Class: reduce
Requires: Control Design and Simulation Module and MathScript RT Module
Syntax
SysRedSS = mreduce(SysInSS, states)
SysRedSS = mreduce(SysInSS, states, method)
Legacy Name: modred
Description
Eliminates state dynamics that you want to ignore in a state-space system model. This function can eliminate the state dynamics by deleting the states or by assuming steady-state conditions for states with fast dynamics. This assumption is a pseudo-steady-state assumption. The pseudo-steady-state assumption does not affect the discrete or continuous system gain of the original system, so the remaining states have the same gain as the full order system.
Inputs
| Name | Description | ||||
|---|---|---|---|---|---|
| SysInSS | Specifies a linear time-invariant (LTI) model in state-space form. | ||||
| states | Specifies the index numbers of the states you want to eliminate. states is an integer scalar or vector. | ||||
| method | Specifies the method you want to use to reduce the order of the SysInSS model. method is a string that can take the following values:
|
Outputs
| Name | Description |
|---|---|
| SysRedSS | Returns the reduced-order version of the SysInSS model. |
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
states = 1
SysInSS = ss(A, B, C, D)
SysRed = mreduce(SysInSS, states)