Reported In shows products that are verified to work for the solution described in this article. This solution might also apply to other similar products or applications.

Software

LabVIEW Base

LabVIEW Full

LabVIEW Professional

Issue Details

The Multiply function in LabVIEW does not properly multiply matrices. Is there an option for matrix multiplication?

Solution

If you want to multiply two matrices to get the correct matrix multiplication, you must use the A x B VI. This VI can be found by navigating to Mathematics»Linear Algebra in the Functions palette.

Additional Information

The Multiply function performs simple multiplication, not matrix multiplication. The function performs per-element multiplication and multiplies the elements in one array by the corresponding elements in the other array. For example, if the first element of array A is 4 and the first element of array B is 2, wiring these two arrays to the Multiply function results in an array that is the same size as A and B whose first element is 4*2 = 8.