From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
11-10-2018 05:29 AM
So i had a problem. Two Matrices A and B.I had to multiply the first row of A with the last column of B element with element.(I attached a picture of it).Now i have to sum the products( scalar product of vectors ). Any ideeas?
11-10-2018 05:47 AM
The Full Problem is this : A and B are two square matrices; multiply first row of A with last column of B element by element and sum their products( scalar product of two vectors).
11-10-2018 06:51 AM
Did you read gregoryj's advice for your previous thread (here) that you marked as a solution? Have you tried typing ctrl+space to bring up the quick drop window and type in the function you need? I'll give you a hint, type "add" (not sum) and look at the list of available functions . Read the help for each of those functions and see if one of them will work for you.
Take gregoryj's other advice and go through the FREE training that is available online.
11-10-2018 07:22 AM
Just realized it's not easy to get help for functions while using quick drop. If you Show Context Help (type ctrl-H) and hover the mouse over a function in the palette, it will show a brief explanation of the function. You can click the Detailed Help for more info.
Hint: The function you are looking for is in the Numeric palette
11-10-2018 07:25 AM
I think i figured it out, not sure if it's good, could you take a look?
11-10-2018 08:58 AM
Why don't you use Add Array Elements?
11-10-2018 02:59 PM - edited 11-10-2018 03:00 PM
If you attached code instead of a picture, it would be much easier for us to show you a counter-example that would totally fail (and, I hope, you'd learn something from the experience). Here's a hint at the problem -- how do you define "first" and "last" when talking about a 2D array? Another question for you -- you specified that A and B are matrices, not arrays. Are you aware (depending, of course, on the version of LabVIEW you are using) that LabVIEW has a Matrix type? [Don't worry -- a little bit of studying, reading the LabVIEW Help, paying attention in class, asking your Instructor, etc. should easily get you past this minor difficulty ...].
Bob Schor
11-10-2018 03:33 PM
@Marius56 wrote:
I think i figured it out, not sure if it's good, could you take a look?