How to make a 31x31 matrix of zeros with 300 1's in random position
조회 수: 3(최근 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
참고 항목
범주
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!