# MATLAB Onramp: 8.1 Obtaining help

조회 수: 26(최근 30일)
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).
-J

댓글을 달려면 로그인하십시오.

### 채택된 답변

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표시숨기기 이전 댓글 수: 2
Jigyasu Chand 2020년 5월 8일
That seems fair. Thanks a lot!
-J

댓글을 달려면 로그인하십시오.

### 추가 답변(3개)

Abubakr Eltayeb 2020년 8월 14일
x = randn([5 7])
##### 댓글 수: 0표시숨기기 이전 댓글 수: -1

댓글을 달려면 로그인하십시오.

Anand Gopal 2021년 1월 19일
x = randi([1,20],5,7)
##### 댓글 수: 0표시숨기기 이전 댓글 수: -1

댓글을 달려면 로그인하십시오.

Yillak Gedamu 2022년 3월 28일
x = randi(20,5,7)

댓글을 달려면 로그인하십시오.

### 범주

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!

Translated by