Question: MATLAB QUESTION 2: The MATLAB function ceil rounds a number up to the next highest integer (i.e., if x 1.1, then ceil(x)-2). The statement ceil(6
MATLAB QUESTION 2:

The MATLAB function "ceil rounds a number up to the next highest integer (i.e., if x 1.1, then ceil(x)-2). The statement ceil(6 rand)" can be used to simulate the toss of a single die. Thus we can simulate five tosses of the die with five toss ceil (6 rand(5,1)) Write a MATLAB program that uses a WHILE loop to count the number of sets of five tosses until the result is all 1's. [Note: there is no 'true' answer since we are dealing with a random process. Every time the program is run, a different number of sets will be required to achieve all 1's.]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
