LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Transposing a Vector

I need to work out the following for two arrays (vectors)

XT times Y where XT is the transpose of the vector X. ie suppose for a
simple case

X= [x0,x1] and Y=[y0,y1]

then I need x0y0 +x1y1

This I can do with a loop and a lot of fuss but I wondered if there
was a library function for transposing. I can find one but it is for
2D arrays.

Thanks

Tom
0 Kudos
Message 1 of 3
(2,628 Views)
Tom;

If you are defining your vectors with arrays, then all you have to do is to multiply the arrays. I attached an example.

If you are using something else than arrays, let us know.

Regards;
Enrique
www.vartortech.com
Message 2 of 3
(2,628 Views)
... and then add the results. I attached a new modified example.

Regards;
Enrique
www.vartortech.com
0 Kudos
Message 3 of 3
(2,628 Views)