bsxfun implementation in matrix multiplication
问题 As always trying to learn more from you, I was hoping I could receive some help with the following code. I need to accomplish the following: 1) I have a vector: x = [1 2 3 4 5 6 7 8 9 10 11 12] 2) and a matrix: A =[11 14 1 5 8 18 10 8 19 13 20 16] I need to be able to multiply each value from x with every value of A , this means: new_matrix = [1* A 2* A 3* A ... 12* A] This will give me this new_matrix of size (12*m x n) assuming A (mxn) . And in this case (12*4x3) How can I do this using