Output Values for Invalid Operations with Matrix Functions

LabVIEW 2018 Help


Edition Date: March 2018
Part Number: 371361R-01
View Product Info

DOWNLOAD (Windows Only)


LabVIEW 2016 Help
LabVIEW 2017 Help
LabVIEW 2018 Help
LabVIEW 2019 Help
LabVIEW 2020 Help

The Matrix functions manipulate the elements, diagonals, and submatrices of a matrix or 2D numeric array. When the functions attempt to get data that is not available or use more data than is available, the functions perform an invalid operation. In the case of an invalid operation, LabVIEW returns or fills in values at exterior locations in the original matrix or 2D array input. These values that appear in the output matrix or 2D array depend on the data and element type of the original matrix or 2D array input. You perform an invalid operation when the values in the following table appear in the output.

Input Data TypeElement TypeOutput Value
2D arrayInteger0
Floating pointNaN
ComplexNaN + NaNi
MatrixReal matrixNaN
Complex matrixNaN + NaNi
Note  During invalid operations, LabVIEW returns the values in this table when the operations extract data from a matrix. During special matrix coercion cases, LabVIEW returns a new data type to pad new locations when you add new elements to a matrix, causing the matrix to expand.

WAS THIS ARTICLE HELPFUL?

Not Helpful