How to create Matrix of known dimensions with random values?
14 次查看(过去 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!