How to create Matrix of known dimensions with random values?
Show older comments
For example A matrix with 5 rows and 3 columns?
Accepted Answer
More Answers (1)
Torsten
on 24 May 2021
0 votes
For random numbers uniformly distributed on [0,1] :
A = rand(5,3);
Categories
Find more on Random Number Generation 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!