Question: B 2 ) Using Matlab ( or Excel . . . but really you should use Matlab here ) create a script that simulates the
B 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 rolls of dice.
Plot a his togram of the output for rolling dice times
There are many ways to accomplish problem B I would create a
dimensional array in which each row is a roll and each column is a die. So
there would be rows and columns. For each rowcolumn combination
simulate a random die roll as in HWhelp.m file. Then sum across each row
to get the sum of the 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.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
