필터 지우기
필터 지우기

How to fixed matrix dimensions

조회 수: 4 (최근 30일)
Md. Mohidul Islam
Md. Mohidul Islam 2022년 4월 25일
댓글: Torsten 2022년 4월 25일
Please Fix this error.

채택된 답변

Torsten
Torsten 2022년 4월 25일
편집: Torsten 2022년 4월 25일
[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개)

카테고리

Help CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by