MATLAB Onramp: 8.1 Obtaining help
Mostra commenti meno recenti
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
Risposta accettata
Più risposte (3)
Yillak Gedamu
il 28 Mar 2022
2 voti
x = randi(20,5,7)
Abubakr Eltayeb
il 14 Ago 2020
1 voto
x = randn([5 7])
Anand Gopal
il 19 Gen 2021
1 voto
x = randi([1,20],5,7)
Categorie
Scopri di più su Loops and Conditional Statements in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
