07-09-2012 07:46 AM
i have matrix ( 4 columns) and i want to apply different arithematic operations on each column .
how can i do that ???
thanks
07-09-2012 07:48 AM - edited 07-09-2012 07:49 AM
Hi oi,
do you actually have a matrix or just a simple 2D array? That is quite a difference in LabVIEW, please use exactly the label that is shown in the context help! (Or show a picture or even better a VI!)
Use either IndexArray, GetSubmatrix - or simple autoindexing of a FOR loop!
07-09-2012 08:51 AM
i have matrix 51*4 and want to get each coloums as 1-D array??
07-09-2012 09:06 AM
07-09-2012 09:57 AM - edited 07-09-2012 09:59 AM
As mentioned, Index array allows you to get rows or colums of a 2D array if you leave one index disconnected.
To get columns, you need to wire the lower index of the two. Here's example code to get the first four columns of a 2D array.
How different are the arithmetic operations you want to apply? Can you show us a typical example? There are probably ways to do it all at once.