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!