Problem 2241. Compare two input matrices
77.37% Correct | 22.63% Incorrect
Last Solution submitted on Mar 07, 2023
Muhtasim Haque Nahian on 8 May 2021
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
Problem Recent Solvers328
Arrange vector in ascending order
07 - Common functions and indexing 3
Find the dimensions of a matrix
More from this Author2
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!