LabVIEW Tip of the Day 2019-01-01:


Matrix Size

Happy new year, fellow #labviewfriends! Let us start off 2019 by doing away with the following nuisance: Getting the size of a 2D array. Using the Array Size function, we need to index out the row and column sizes from its output, which is, as we already said, a bit of an annoyance.

But since LabVIEW 2009 (nearly 10 years!), the Matrix Size Function has been there for us:

Returns the dimensions for the number of rows and columns of matrix. The connector pane displays the default data types for this polymorphic function.

Matrix Size Function

The awesome thing about this is: The matrix 2D array can be any numeric type or a real or complex matrix.

Note: Read Darren's Weekly Nugget on this function for more details and links to further resources.


Find more tips