채택된 답변

Torsten
Torsten 2022년 4월 25일
편집: Torsten 2022년 4월 25일

1 개 추천

[m,n] = size(A);
Sc = sum(A,1);
Sr = sum(A,2);
if (Sc == ones(1,n)) & (Sr == ones(m,1))
disp('Correct')
else
disp('Incorrect')
end

댓글 수: 2

Md. Mohidul Islam
Md. Mohidul Islam 2022년 4월 25일
It's running on mobile apps but showing the mistake in the computer
Torsten
Torsten 2022년 4월 25일
The corrected code above works for me.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 MATLAB에 대해 자세히 알아보기

태그

질문:

2022년 4월 25일

댓글:

2022년 4월 25일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by