Jump to content
News about the LabVIEW Wiki! Read more... ×
Neil Pate

Tip: use Build Matrix to assemble a 2D array by columns

Recommended Posts

That's interesting and I definitely have never thought of that.  Do you know what the differences are between the Matrix data type and Array data type?  I tried a couple of OpenG 2D array operations out and they all seem to work ok on the matrix.

Share this post


Link to post
Share on other sites

As far as I can tell a Matrix is just a typedef to a 2D double, there is nothing at all special about it. 

  • Like 1

Share this post


Link to post
Share on other sites

Yeah it's a neat feature but only works on the double (or numeric really) data types.  As for the Matrix data type, no idea really.  I mean I always assumed there is some performance improvements for those functions but then again why couldn't those improvements be implemented with normal 2D array of doubles as the data type and not be polymorphic like most other array functions?  Another nice function that is on the matrix palette that is polymorphic is the Matrix Size which returns the rows and columns both as scalars.  Why this isn't on the array palette I'll never know.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

By using this site, you agree to our Terms of Use.