Problem 2237. Mmm! Multi-dimensional Matrix Multiplication
Solution Stats
Problem Comments
-
4 Comments
The 5th case should be: C_correct = cat(3,A(:,:,1)*B,A(:,:,2)*B,A(:,:,3)*B); ??
I gave the solution which passes all given test cases, but I am sure it will fail, if there are multiple combinations of sizes of A and B.
I believe, to get a full-proof solution, more test cases are needed. Or such solution can work for limited combination of sizes of multidimensional matrices to be multiplied.
José Ramón, You are absolutely right. I will fix it.
Have a look in 20b! :)
Problem Recent Solvers20
Suggested Problems
-
Project Euler: Problem 3, Largest prime factor
1020 Solvers
-
Convert hex color specification to MATLAB RGB
223 Solvers
-
487 Solvers
-
Sum the 'edge' values of a matrix
308 Solvers
-
Convert given decimal number to binary number.
1479 Solvers
More from this Author31
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!