Coin toss simulation test
显示 更早的评论
Through the simulation, show that probability of getting HEAD by tossing a fair coin is about 0.5. Write your observation from the simulation run.
if possible please explain the steps as I am new
1 个评论
One way
vec = randi([0,1],1,1000);
number_of_heads = sum( vec );
number_of_tails = 1000 - number_of_heads
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Noncentral t Distribution 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!