remove (MathScript RT Module Function)
- Updated2023-03-14
- 2 minute(s) read
remove (MathScript RT Module Function)
Owning Class: reduce
Requires: Control Design and Simulation Module and MathScript RT Module
Syntax
SysRed = remove(SysIn, i)
SysRed = remove(SysIn, i, j)
SysRed = remove(SysIn, i, j, k)
Description
Constructs a new system model by removing specified inputs and/or outputs from an existing model. You also can remove states from an existing state-space model.
Inputs
| Name | Description |
|---|---|
| SysIn | Specifies a linear time-invariant (LTI) model in transfer function, zero-pole-gain, or state-space form. |
| i | Specifies a list of model inputs to remove from the SysIn model. The default value is empty. A value of -1 specifies that you want to remove all inputs. i is a real vector. |
| j | Specifies a list of model outputs to remove from the SysIn model. The default value is empty. A value of -1 specifies that you want to remove all outputs. j is a real vector. |
| k | Specifies a list of model states to remove from the SysIn model. The default value is empty. A value of -1 specifies that you want to remove all states. This input is valid only if you specify a state-space model. k is a real vector. |
Outputs
| Name | Description |
|---|---|
| SysRed | Returns the SysIn model without the specified inputs and outputs. If you specified a state-space model for the SysIn input, the SysRed model also lacks the specified states. |
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= tf(1, 2, 3, 4, 5, 6, -1, -2, -3, -4, -5, -6, [2 3]);
SysRed = remove(SysIn, [2 1], [2 1]);