# LabVIEW

cancel
Showing results for
Did you mean:

## How to multiply two vector (dot) and get a matrix?

How to multiply two vector (dot) and get a matrix using linear algebra function?

Message 1 of 13
(4,223 Views)

## Re: How to multiply two vector (dot) and get a matrix?

Are you talking about the outer product?

Message 2 of 13
(4,215 Views)

## Re: How to multiply two vector (dot) and get a matrix?

I tried to multiply two vector using dot product, but it alaways give me scalar, I need to multipy two vector and give me matrix.

Message 3 of 13
(4,208 Views)

## Re: How to multiply two vector (dot) and get a matrix?

I tried to multiply two vector using dot product, but it alaways give me broken wire. I tried to convert it from array to matrix but without any seccess.

Message 4 of 13
(4,207 Views)

Message 5 of 13
(4,202 Views)

## Re: How to multiply two vector (dot) and get a matrix?

This is the VI, you will find the multiplication at the end, it should give me a matrix.

Message 6 of 13
(4,197 Views)

## Re: How to multiply two vector (dot) and get a matrix?

I only have LV2012 so I can't open your VI. You can backsave it and attach it again or maybe somebody else will have a look.

But there's something I don't understand. You're talking about the dot product of 2 vectors. The dot (or inner) product of 2 vectors is a scalar, not a matrix.

That's why I asked if you meant the outer product.

Message 7 of 13
(4,190 Views)

## Re: How to multiply two vector (dot) and get a matrix?

one of the vector is transposed.

Message 8 of 13
(4,183 Views)

## Re: How to multiply two vector (dot) and get a matrix?

A normal 1D LabVIEW array (single dimension) does not have a direction, so it can't be transposed.

And still, the dot product returns a scalar. Maybe what you want is matrix multiplication?

Message 9 of 13
(4,176 Views)

## Re: How to multiply two vector (dot) and get a matrix?

Yes, matrix multiplication.

Message 10 of 13
(4,170 Views)