MATLAB: Probability HW Need help

helphomeworkprobabilityrandomrandom number generatorstatistics

Hello,
Can someone help mw with homework? How do I start ? What should I use ? Do I need conditional statements or not ? What kind of variables do I need to do ?

Best Answer

head=1, tails=0. This should give you a good start.
a=randi(2,5,10)-1;
results=sum(a);
b=randi(2,5,1000)-1;
results2=sum(b);
histogram(results2);