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

John D'Errico
John D'Errico 2022년 4월 9일
AGAIN. Stop posting this assignment. This is now the 4th time you posted it.

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

답변 (1개)

David Hill
David Hill 2022년 4월 9일

0 개 추천

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

카테고리

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

질문:

2022년 4월 9일

댓글:

2022년 4월 9일

Community Treasure Hunt

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

Start Hunting!

Translated by