11-29-2013 01:26 AM
Hi,
How do I multiply two binary matrices in labview? tried using boolean OR operator but it is not working
thanks
Solved! Go to Solution.
11-29-2013 01:30 AM
11-29-2013 01:37 AM
Hi sumalama,
What do u mean by multiplication in this instance??
Please check this is what u need?
11-29-2013 01:52 AM
Hi,
I have attached the screenshot of my VI, please have a look
thanks
11-29-2013 01:58 AM - edited 11-29-2013 02:04 AM
Hi sumalama,
is there a reason to use matrix datatype instead of plain 2D arrays?
When you want to use boolean operations you're bound to use arrays. Convert the matrices into arrays (if possible boolean arrays) and use the functions of the boolean palette!
11-29-2013 02:00 AM
Even with matrices it does function!
Though 2D arrays are recommended, so you can use boolean arrays
11-29-2013 02:06 AM - edited 11-29-2013 02:14 AM
11-29-2013 02:12 AM
Yes you are right, but he was talking about booleans.
But you are right DBL's aren't that great for comparison
11-29-2013 02:14 AM
Hi,
I had used the arrary first and it gives me unexpected result, dimension is not correct, attached is screenshot. I want to multiply the two matrices so i am using OR function.
thanks
11-29-2013 02:16 AM - edited 11-29-2013 02:20 AM
Hi sumalama,
now we getting to the core of the problem: You're mixing array operations with mathematical matrix calculations!
That's what I meant with "attach a VI with values and expected result"...
Please look in the mathematics->linear algebra functions palette and pick the correct functions to "multiply" two arrays. The correct wording should be "A×B" (cross/vector product)!
Btw. the boolean OR is usually the replacement for an addition, while the AND is considered the "boolean multiplication"...