MATLAB Onramp: 8.1 Obtaining help
Show older comments
Hi folks!
I just started exploring MATLAB and I am stuck at the following place. In the course "MATLAB Onramp" which is one of the 'Getting Started' courses, I am not able to get the solution of '8. Obtaining help - Further Practice'. The task is to create a matrix that
- Contains random integers in the range from 1 to 20,
- Has 5 rows, and
- Has 7 columns.
matrix with normally distributed numbers (instead of uniformly distributed numbers).
Please help on this one.
Thanks in advance!
-J
Accepted Answer
More Answers (3)
Yillak Gedamu
on 28 Mar 2022
2 votes
x = randi(20,5,7)
Abubakr Eltayeb
on 14 Aug 2020
1 vote
x = randn([5 7])
Anand Gopal
on 19 Jan 2021
1 vote
x = randi([1,20],5,7)
Categories
Find more on Creating and Concatenating Matrices 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!