Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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