MATLAB Onramp: 8.1 Obtaining help
Mostrar comentarios más antiguos
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
Respuesta aceptada
Más respuestas (3)
Yillak Gedamu
el 28 de Mzo. de 2022
2 votos
x = randi(20,5,7)
Abubakr Eltayeb
el 14 de Ag. de 2020
1 voto
x = randn([5 7])
Anand Gopal
el 19 de En. de 2021
1 voto
x = randi([1,20],5,7)
Categorías
Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
