MATLAB: Matrix multiplication with different dimension I need to perform a matrix multiplication with different dimensions, let A*B=C; where the dimension of A is 700*5 and the dimension of C should be 1*5, what will be the dimension of B?? Is this possible?? Best Answer No. However it would be possible if it were B*A = C instead, in which case B would have to be 1 x 700 Related SolutionsMATLAB: Matrix multiplication using bsxfun(@times,a,b) Not sure if this is the operation you really want from your description:a = 6x7 matrixb = 7x3 matrixc = a * b; % 6x3 matrix MATLAB: What is the matrix multiplication of these two vectors To do matrix multiplication the inner dimensions must agree. Both of your matrices are 1x5 vectors. You can do either of the following:A' * B (results in a 5x5 matrix)orA * B' (results in a 1x1 scalar) Related QuestionElement wise multiplication multi dimensionalArray multiplication along certain dimension
Best Answer