ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

1x1 matrix to scalar

Solved!
Go to solution

Hello.

 

I have searched for an answer for my problem in the forum but I didn't find it, so here it is:

 

When I multiply a 1x3 matrix by its transpose, wich is a 3x1 matrix I obtain a 1x1 matrix with a single scalar. How can I transform it into a single scalar?

 

Thanks in advance.

0 Kudos
Message 1 of 3
(4,645 Views)
Solution
Accepted by topic author pakopon

A matrix is just a special type of array, so you can use the Index Array function for this:

matrix index.png

0 Kudos
Message 2 of 3
(4,630 Views)

thanks for your response 🙂

 

0 Kudos
Message 3 of 3
(4,610 Views)