05-01-2011 09:00 AM
Hi,
I have two matrices 1 2d and 1 1d I wish to multiple the first element of the 1d by the each element of the first column of the 2d, the second element of the 1d by all the elements of the second column of the the 2d and so on. However I dont know how to implement this?
e.g.
111 123
111 x 123 = 123 (The number of columns in the 1d array will always be the same as the number in the 2d array)
111 123
Any help would be greatly appreciated.
Thanks
Nick Muir
Solved! Go to Solution.
05-01-2011 11:49 AM - edited 05-01-2011 11:50 AM
Use an autoindexing FOR loop.
LabVIEW has no distinctions between a row vector and a column vector, it's just a 1D array.
Also, I would use a 2D array instead of a matrix.
(Make sure to disable autoindexing on the 1D array input tunnel)
05-01-2011 09:59 PM
Hi Altenbach,
Once again your my saviour.
Appreciate it
Nick