Problem 2241. Compare two input matrices
Solution Stats
Problem Comments
-
1 Comment
Test suite has been improved by adding new test cases.
Solution Comments
-
1 Comment
improve the test suite please. You can easily solve this problem with the undermentioned code, which is actually incorrect but passes the test suite.
function flag = CompareMatrix(A,B)
if sum(A,'all') > sum(B,'all')
flag = 1
else flag = 0
end
end
Problem Recent Solvers299
Suggested Problems
-
Project Euler: Problem 1, Multiples of 3 and 5
2239 Solvers
-
1471 Solvers
-
8464 Solvers
-
244 Solvers
-
Matlab Basics - Pick out parts of a vector
215 Solvers
More from this Author2
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!