LabVIEW Control Design and Simulation Module

minus (MathScript RT Module Function)

  • Updated2023-03-14
  • 2 minute(s) read

minus (MathScript RT Module Function)

Owning Class: cdops

Requires: Control Design and Simulation Module and MathScript RT Module

Syntax

SysOut = minus(SysIn_1, SysIn_2)

Description

Performs element-wise subtraction.

Details

Examples

Inputs

Name Description
SysIn_1 Specifies a scalar, a matrix, or a linear time-invariant (LTI) model in transfer function, zero-pole-gain, or state-space form.
SysIn_2 Specifies a scalar, a matrix, or an LTI model in transfer function, zero-pole-gain, or state-space form. If SysIn_1 is a matrix and SysIn_2 is a matrix, then SysIn_2 must be of the same size as SysIn_1.

Outputs

Name Description
SysOut Returns SysIn_1 - SysIn_2. If both SysIn_1 and SysIn_2 are scalars, SysOut is a scalar. If one or both of SysIn_1 or SysIn_2 is an LTI model, SysOut is an LTI model. Otherwise, SysOut is a matrix.

Details

If SysIn_1 is a scalar, LabVIEW sets SysIn_1 to a matrix of the same size as SysIn_2 whose elements all equal the value you specified for SysIn_1. If SysIn_2 is a scalar, LabVIEW sets SysIn_2 to a matrix of the same size as SysIn_1 whose elements all equal the value you specified for SysIn_2.

If SysOut is an LTI model, the form of this model is determined by the form of the input LTI model(s). If the input models are not of the same form, the following hierarchy determines the form of the SysOut model: state-space>zero-pole-gain>transfer function. For example, if the SysIn_1 model is in state-space form and the SysIn_2 model is in zero-pole-gain form, the SysOut model is in state-space form.

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

Sys1 = randtf(1, 1)
Sys2 = randzpk(1, 1, 1)
SysOut = minus(Sys1, Sys2)

Related Topics

plus