LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to multiply or divide 2 vector of same length and obtain a vector of same length

Is there any build in VI which could do that?  I am looking for a way to divide 2 array of same length and would give me another array (same length) [1 3] / [2 4] = [1/2 3/4]
Thx
0 Kudos
Message 1 of 4
(2,903 Views)
Just wire the two arrays to a plain divide or multiply node. It will do what you need. 🙂
0 Kudos
Message 2 of 4
(2,896 Views)
OH! you are right, so how about if I want to mutliply two vector and get a scalar (linear algebra)?
0 Kudos
Message 3 of 4
(2,895 Views)

All the linear algebra operations are on the "Analyze...Mathematics...Linear Algebra palette" (LabVIEW 7.1 and below).

If you have LabVIEW LabVIEW 8.0, there is a new matrix data type which will use linear algebra operations directly if you wire them to e.g. a multiply node. Check the online help for details.

Message 4 of 4
(2,889 Views)