How to check 0 and 1 at matrix every row and column?
2 ビュー (過去 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!