Question: Help me write a MatLab program that simulates N rolls of a pair of dice(roll 2 separate dice each time) and creates a plot with

Help me write a MatLab program that simulates N rolls of a pair of dice(roll 2 separate dice each time) and creates a plot with the percent frequency of each roll score.

*Keep a running count Nscores(iScore) a 1 x 12 array of numbers of each time a possible score occurs.

* Complete at least 1000 rolls.

* Calculate the frequency (in percent) of times each number was rolled and plot that result.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!