Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started