Problem 45268. Restricted Multiplication v1
Solution Stats
Problem Comments
-
6 Comments
This problem's title is kind of misleading. Multiplication of matrices is not a multiplication of numbers (scalars) but a dot product of vectors. The test suite mixes the two operations, yet they are not the same. Moreover, we cannot use an if struct (because of the f-letter prohibition). I agree with 埃博拉酱; there is very likely no way to solve this problem without a hack (whatever function we use probably won't have the two necessary behaviors).
The tests involving single letters (a, e, f) have been updated to two or three letters to potentially allow for non-hacking solutions. Also, returned values are now tested against a tolerance.
Too many restrictions and all solutions submitted are the same.
As in life...
Solution Comments
Show commentsProblem Recent Solvers7
Suggested Problems
-
Select every other element of a vector
33924 Solvers
-
Test if a Number is a Palindrome without using any String Operations
238 Solvers
-
237 Solvers
-
904 Solvers
-
543 Solvers
More from this Author9
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!