Use a Matlab function to generate a 5x5 matrix containing random numbers between 1 and 30.
Show older comments
which Matlab function can i use to generate a 5x5 matrix containing random numbers between 1 and 30. ? example please.
1 Comment
"which Matlab function can i use to generate a 5x5 matrix containing random numbers..."
When I used [a major internet search engine] to search for "Matlab random number" this was the very first link it provided, and it lists all relevant functions and documentation:
Finding that page took me less time than it took you to write your question.
Accepted Answer
More Answers (1)
Walter Roberson
on 25 Jan 2019
randi(30, 5, 5)
1 Comment
Image Analyst
on 25 Jan 2019
Note: Generates integer numbers.
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!