How to make a 31x31 matrix of zeros with 300 1's in random position
조회 수: 1 (최근 30일)
이전 댓글 표시
x1 = randi([0, 1], [31,31]); %random grid
I have this so far, but I want only 300 1's and not a random amount.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!