How to create Matrix of known dimensions with random values?
조회 수: 12 (최근 30일)
이전 댓글 표시
For example A matrix with 5 rows and 3 columns?
댓글 수: 0
채택된 답변
Shivani Dixit
2021년 5월 24일
A matrix of know dimensions and random values can be created by using the rand() function. You just need to provide the required dimension of row and column in the the rand() function. As per your example, you can create your matrix by rand(5,3)
You can leverage the Matlab documentation of the rand() function , you can also find out related functions in the link below :
댓글 수: 0
추가 답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Random Number Generation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!