MATLAB Onramp: 8.1 Obtaining help
古いコメントを表示
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
採用された回答
その他の回答 (3 件)
Yillak Gedamu
2022 年 3 月 28 日
2 投票
x = randi(20,5,7)
Abubakr Eltayeb
2020 年 8 月 14 日
1 投票
x = randn([5 7])
Anand Gopal
2021 年 1 月 19 日
1 投票
x = randi([1,20],5,7)
カテゴリ
ヘルプ センター および File Exchange で Loops and Conditional Statements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
