Randomly initialise a matrix with numbers between 0 and 1?
조회 수: 38 (최근 30일)
이전 댓글 표시
I want to initialise a 2*5 matrix with values between 0 and 1. Is there any easy way to do this?
댓글 수: 0
답변 (1개)
Manvi Goel
2019년 6월 6일
You can initialise a random matrix with uniform distribution between 0 and 1 by the following:
randomMatrix = rand(2,5)
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!