the matrix should be 7 by 7. start with 1 and end with 1.
the smallest number in must be 0 and biggest one is 16.
please help me solve this homework....

1 comentario

John D'Errico
John D'Errico el 9 de Abr. de 2022
AGAIN. Stop posting this assignment. This is now the 4th time you posted it.

Iniciar sesión para comentar.

Respuestas (1)

David Hill
David Hill el 9 de Abr. de 2022

0 votos

a=16*rand(7);
a(1)=1;a(49)=1;
a(randperm(47,2)+1)=[0,16];

Categorías

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

Preguntada:

el 9 de Abr. de 2022

Comentada:

el 9 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