Question: B 2 ) Using Matlab ( or Excel . . . but really you should use Matlab here ) create a script that simulates the

B2) Using Matlab (or Excel ... but really you should use Matlab here) create a script that
simulates the output of rolling two dice. That is, two dice are rolled and the value of
interest is the sum of these two rolls. Your script should simulate 1000 rolls of 2 dice.
Plot a his togram of the output for rolling 2 dice 1000 times
There are many ways to accomplish problem B2. I would create a 2-
dimensional array in which each row is a roll and each column is a die. So,
there would be 1000 rows and 2 columns. For each row-column combination
simulate a random die roll as in HW3_help.m file. Then sum across each row
to get the sum of the 2 dice.
Use the "his togram()" function to plot a his togram. You can either search for
this function in the Matlab help or simply type 'help his togram'to get help on
using this function.
 B2) Using Matlab (or Excel ... but really you should use

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!