Respuesta aceptada

Torsten
Torsten el 25 de Abr. de 2022
Editada: Torsten el 25 de Abr. de 2022
[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 comentarios

Md. Mohidul Islam
Md. Mohidul Islam el 25 de Abr. de 2022
It's running on mobile apps but showing the mistake in the computer
Torsten
Torsten el 25 de Abr. de 2022
The corrected code above works for me.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre MATLAB en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 25 de Abr. de 2022

Comentada:

el 25 de Abr. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by