How to check 0 and 1 at matrix every row and column?
조회 수: 4 (최근 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개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

