LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Matrix multiply: 1-D row vector * 3-by-3 vector

Solved!
Go to solution

I tried to implement Matrix Multiply: 1-D row vector * 3-by-3 vector in Labview, such as [1 2 3]*[1 2 1; 3 2 4;5 7 8].

But it seems not easy to do this.

If I use array-to-matrix function to transfer 1-D row vector array to matrix, it was always transfered to 1-D column vector matrix.

I feel it is also not convenient to initialize an 1-D row array too.  

I am new for Labview, could anybody here help me out?

Thanks a lot!

 

0 Kudos
Message 1 of 5
(3,401 Views)

Leave the vector as a plain 1D array.

 

Pleae attach your code so we can have a look.

0 Kudos
Message 2 of 5
(3,397 Views)

Here I attached the simple 1-D row array to matrix code. Thx.

'Leave the vector as a plain 1D array.'---What does that mean? Array can do multiply?

0 Kudos
Message 3 of 5
(3,377 Views)
Solution
Accepted by topic author huati

huati wrote:

'Leave the vector as a plain 1D array.'---What does that mean? Array can do multiply?


Use AxB.vi from the "mathematics...Linear Algebra Palette".

 

For example the following code does "V' x matrix" and "matrix x vector". Check the online help for details.

 

 

 

Message Edited by altenbach on 10-28-2008 07:43 AM
Download All
Message 4 of 5
(3,366 Views)
Thanks a lot!
0 Kudos
Message 5 of 5
(3,355 Views)