Problem 3075. Matrix of Multiplication Facts
 The two numbers touching the 21 are 7 and 3, and 7x3=21.
 The two numbers touching the 35 are 7 and 5, and 7x5=35.
 The two numbers touching the 6 are 2 and 3, and 2x3=6.
 The two numbers touching the 10 are 2 and 5, and 2x5=10.
Solution Stats
Problem Comments

6 Comments
I think the test suite is broken, I appear to only get x = [21,6;35,10] as the input and y is being displayed as a vector instead of the matrix that is returned. So either the return is being compared to an x that was not sent or y being a vector is causing the test cases to always fail.
Andrew, I just tried resubmitting my original solution, and the test suite was OK. What is the exact problem that you're having with the test suite when you submit your solution?
nice one!!
I've got the same problem as Andrew: The test suite always passes x = [21,6;35,10] to my function, even though x is assigned different values in the tests.
Hi Stefan, regarding your comment about the test suite always passing a fixed matrix, I looked into the solution space and the reference solution  the problem seems to be solvable. Where you referring to the Scratchpad by any chance? Let me know if you're still facing the issue, or if you've resolved it since the time you left the comment. Happy to help
There might have been formatting error with the first test case which led to the problems Andrew and Stefan faced.
I have corrected the error and the problem should work fine now.
Solution Comments
Show commentsProblem Recent Solvers106
Suggested Problems

Return a list sorted by number of occurrences
2716 Solvers

Replace NaNs with the number that appears to its left in the row.
2945 Solvers

6691 Solvers

Area of an equilateral triangle
5881 Solvers

Height of a rightangled triangle
1669 Solvers
More from this Author80
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!