MATLAB Onramp: 8.1 Obtaining help

12 ビュー (過去 30 日間)
Jigyasu Chand
Jigyasu Chand 2020 年 5 月 4 日
回答済み: Yillak Gedamu 2022 年 3 月 28 日
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!


Guillaume 2020 年 5 月 4 日
I've just discovered that there are several versions of the Onramp course (R2018b, R2019a, and R2019b). The last two have slightly different presentation for the assignment (the first one doesn't seem to work properly) but in neither of them do I see that assignment under further practice. Which version are you using (look at the url)? Perhaps it is also language specific.
The assignment doesn't make sense and certainly won't be answered by the doc. You could rescale and recentre a normal distribution and possibly round it to integers but it still wouldn't be restricted to a range. And you could hardly call the result a normal distribution anymore.
You should report it as a bug to mathworks.
  3 件のコメント
Jigyasu Chand
Jigyasu Chand 2020 年 5 月 8 日
That seems fair. Thanks a lot!


その他の回答 (3 件)

Abubakr Eltayeb
Abubakr Eltayeb 2020 年 8 月 14 日
x = randn([5 7])

Anand Gopal
Anand Gopal 2021 年 1 月 19 日
x = randi([1,20],5,7)

Yillak Gedamu
Yillak Gedamu 2022 年 3 月 28 日
x = randi(20,5,7)


Help Center および File ExchangeLogical についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by