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
-
370 Solvers
-
616 Solvers
-
Create a Cell array of month-end date strings within a provided date range
27 Solvers
-
Given a matrix, return the last eigen value
225 Solvers
-
Golomb's self-describing sequence (based on Euler 341)
163 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!