matlab plz the quiz will close in 15 min QUESTION 2 2 points
(matlab) plz the quiz will close in 15 min
QUESTION 2 2 points Save Answer A student was rolling a dice to decide what to do in the next hour: If it\'s 1, he\'d exercise. If it\'s 2, he\'d hang out with friends. If it\'s 3, he\'d watch If it\'s 4, he\'d play with phone apps. If it\'s 5, he\'d read the textbook. If it\'s 6, he\'d do homework. However, he didn\'t follow through with this rst choice, but kept rolling the dice 10 times. Please simulate this process and generate a sequence of 10 random integers between 1 and 6 (including 1 and 6) Please implement it using randi function (you used rand function in the previous problem). Which of the following commands can do this? Select all that apply. O randi (5) +1 O use the command below randi (6) and run it 10 times. randi (6,1,10) O randi (10,1,6)Solution
>> randi(6,1,10)
option 3 is correct already i checked in matlab
result:
ans =
5 6 1 6 4 1 2 4 6 6
