Question: MATLAB Assignment: Complete the following tasks and submit three files on blackboard. The files to be submitted should include a Matlab function, Matlab script, and
MATLAB Assignment: Complete the following tasks and submit three files on blackboard. The files to be
submitted should include a Matlab function, Matlab script, and one doc or pdf file with the results figures.
You can use the code from Lecture as a starting point.
a Create a function to generate a random outcome of Bernoulli Trials where the probability of
success for each individual trial is defined as ie the function should take parameters and
b Create a script that repeats the functionfrom part a times or modify the function to output
the outcome of repetitions of the original function and counts the number of successes in each
repetition.
c In your script, add code to generate a histogram that shows the number of times you end up with
successes out of trials when repeating times. The values for should range from to
d Generate results for each of the following scenarios:
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
