Is it possible to multiply a 3x3 matrix by the COLUMNS of a 3x3 matrix without using a loop and store the results in a new 3x3matrix?
1 view (last 30 days)
Show older comments
For example if I have the matrix z = [1 2 3; 1 2 3; 1 2 3] and I have another matrix t = [ 2 2 2; 2 2 2; 2 2 2]. I want to multiply z by the first, second and third row of t. So by the end of this process I should have three vectors of the size 3x1 that should be placed right next to each other to create a 3x3 matrix. I have already done this using a for loop, but I was wondering if there was a faster way to do this because the matlab program I am building, I am multiplying a 3x3 matrix by the columns of a 3 x 1000 matrix.
0 Comments
Answers (1)
See Also
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!