Right Matrix Division in LabVIEW

Updated Sep 5, 2023

Reported In

Software

  • LabVIEW
  • LabVIEW MathScript Module

Other

MATLAB® 

Issue Details

I am using a MathScript Node in LabVIEW to perform the right matrix division (rightdivmx or mrdivide) and I need to convert this operation to LabVIEW code.

Solution

Note: NI does not recommend LabVIEW MathScript Module functions for new designs. Refer to www.ni.com/migratemathscript  for information and recommended alternatives.

There is no equivalent function for the right matrix division in LabVIEW, so you have to use the equivalent formula used by the MathScript code to perform this operation.

c = rightdivmx(a, b)

The infix notation for rightdivmx(a, b) is a/b. rightdivmx(a, b) is equivalent to leftdivmx(b', a')'. If you want to replicate the a/b mrdivide you can also use a*b' which is equivalent to a/b.

LabVIEW does a traditional point-by-point divide for the matrices when using the divide function, so you have to use the full formula in order to get the mrdivide result.