02-23-2009 05:56 AM
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.
02-23-2009 03:58 PM
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.
02-24-2009 02:39 AM
02-24-2009 09:40 AM
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).