LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

binary matrix multiplication

Solved!
Go to solution

We can't give you the solution, if we don't know how to solve the problem.

You haven't given answer to the following question of udka:

0x0=?
0x1=?
1x0=?
1x1=?

What will the solutions be?

---

UnCertified LabVIEW Student
Mistakes are for learning, that's why suggestions are always welcome!
0 Kudos
Message 21 of 40
(2,040 Views)

For the question,

0x0=0
0x1=0
1x0=0
1x1=1

 

 where do i find the boolean control?i searched this and can find only numeric control

 

thanks

 

 

0 Kudos
Message 22 of 40
(2,036 Views)

You just have to drag the boolean in the array control.

barray.PNG

---

UnCertified LabVIEW Student
Mistakes are for learning, that's why suggestions are always welcome!
0 Kudos
Message 23 of 40
(2,035 Views)

@sumalama wrote:

For the question,

0x0=0
0x1=0
1x0=0
1x1=1

 

 where do i find the boolean control?i searched this and can find only numeric control

 

thanks

 

 


In that case whatever values,u've put in the resultant matrix/array whatever it is not correct.

For Boolean Array, In the front panel right click go to boolean subpalette and get any one of control. Or simply do search for boolean control by pressing Ctrl+D and the tab which comes after that.

Thanks
uday
0 Kudos
Message 24 of 40
(2,031 Views)

boolean array is not the thing i want, i want to have binary data (1 and 0) into the array ....

 

 

0 Kudos
Message 25 of 40
(2,027 Views)

You mean you want to go from number array to boolean array?

tobooelan.png

---

UnCertified LabVIEW Student
Mistakes are for learning, that's why suggestions are always welcome!
0 Kudos
Message 26 of 40
(2,023 Views)

Sumalama,

 

Say you have a row T,T,T

Which is multiplied by a column T,T,F

 

The sum is the sum of T,T,F.

 

What are you defining as the sum of T,T and F as a boolean? How are you calculating that?

We need to know this answer to understand what you expect from a 'boolean matrix multiply'.

 

0 Kudos
Message 27 of 40
(1,994 Views)

thanks all for your replies, but really none of them gave me the solution I am seeking, i think that it is not hard to understand what i am trying to do- a binary operation(module-2 add and multiply) with two matrices. boolean array is not the solution because it doesn't allow me to enter binary digits(1 and 0).

 

i had earlier posted my inputs array and expected output array and i am posting it again. i look forward for your kind help

 

thanks

 

binary4.png

0 Kudos
Message 28 of 40
(1,974 Views)

It IS that hard to understand because what you say you want doesn't match the example you posted.  Answer the earlier questions!

 

How does the second row of the X array [1 0 1] get combined withe the first column of the Y array [1 0 1], and you only get 1?

 

How does the second row of X [1 0 1] get combined with the second column of Y [0 0 1] become the answer of 1, yet second row of X [1 0 1] get combined with third column of Y, also [ 0 0 1] and you wind up with a different answer of 0?

 

What are you really trying to do?  Is this homework?

Message 29 of 40
(1,963 Views)

What Ravensfan said- your example is useless because it tells us only what the result is when we're multiplying by (0,0,0)- plus as he said, you're not directly answering the question. If 'module 2' means 'modulo 2', then what's the problem? Convert to I32, use standard matrix math available in labview, then take modulo 2 of the resulting matrix.

0 Kudos
Message 30 of 40
(1,948 Views)