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
Get step-by-step solutions from verified subject matter experts
