I have a vector 10×1 and a 3D matrix NxNx10, and what I want to do is to multiply every dimension of the matrix (the 10 of them) by every scalar of the vector. I mean every of the 10 dimensions by a different scalar of the vector. Do you know if it exists a way to do it without using fors?
MATLAB: Multiply an array of scalars by a 3D matrix
matrix multiplicationscalar product
Related Question
- When I multiply two matrices, say a 3×3 and a 3×1, how would I make the final result a 3x3x3 matrix, with the value of each element being a result of the product of the row, column, and height
- Help with multiplying matrix
- Help with matrix manipulation in matlab
- How to combine two matrices to one and sort the rows
- Multiply col vector with matrix
Best Answer