LabVIEW Control Design and Simulation Module

multmx (MathScript RT Module Function)

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

multmx (MathScript RT Module Function)

Owning Class: cdops

Requires: Control Design and Simulation Module and MathScript RT Module

Syntax

SysOut = multmx(SysIn_1, SysIn_2)

Description

Performs matrix multiplication.

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. If SysIn_1 is a matrix, the number of columns in SysIn_1 must equal the number of rows in SysIn_2.
SysIn_2 Specifies a scalar, a matrix, or an LTI model in transfer function, zero-pole-gain, or state-space form.

Outputs

Name Description
SysOut Returns the product of SysIn_1 and 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 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 = randss(2, 1, 1)
Sys2 = randzpk(1, 1, 1)
SysOut = multmx(Sys1, Sys2)

Related Topics

powermx