LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

matrix multiplication

i tried to perform matrix multiplication and it works using multiply operator not matrix maultiply operator , then i tried to perform much more complex vi where it performs multiplication between 2 matricies one entered from user and the other one calculated but it doent work , i will upload the file could you help.

0 Kudos
Message 1 of 4
(8,400 Views)

It would really help if you had some example input matrices for someone who doesn't know what you are trying to accomplish.  I do not know your linear algebra backround but a bit advice would be that when doing matrix multiplication the inner dimensions of your matrices must agree.  For example:

 

I can multiply two matrices with dimensions A = 1x4; B=4x4.  Essentially you have (1x4)*(4x4) to give you a matrix that is (1x4)

 

You can not multiply matrices with inner dimensions that do not agree.  A=2x5; B=2x5.  It's just not going to happen.

 

When I made up matrices it appeared that the inner dimensions did not match when doing the multiplication.

0 Kudos
Message 2 of 4
(8,375 Views)
i know about matrix  multiplication dimensions here i multiply generator matrix (4*7) with code word matrix(1*4) i think it should work and give (1*7) ,generally iam making hamming (7,4) encoder but i input parity check matrix not generating it .
0 Kudos
Message 3 of 4
(8,359 Views)

rasha wrote:
i know about matrix  multiplication dimensions here i multiply generator matrix (4*7) with code word matrix(1*4) i think it should work and give (1*7) ,

It will if you do (1*4) x (4*7) since this is the combination in which the inner dimensions agree. As for using the Multiply function, the documentation for the Multiply function states that you cannot use this to multiply a vector (your 1*4) with a matrix (your 4*7). You need to use the A x Vector VI for this (also stated in the documentation). 

0 Kudos
Message 4 of 4
(8,339 Views)