How to check 0 and 1 at matrix every row and column?
3 次查看(过去 30 天)
显示 更早的评论
matrix can only contain one of the only one in his row and column.
1 个评论
Torsten
2022-4-25
If you know that the matrix contains only 0's and 1's, sum the rows and sum the columns. If the result is 1 in each case, return "correct".
采纳的回答
更多回答(1 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!