Count the number of heads and tails using the sum function with logical indexing.

The number of coin flips is 100. How do I count the number of heads and tails using the sum function with
logical indexing? Divide each count by n to get the proportion of heads and tails.

1 件のコメント

Dyuman Joshi
Dyuman Joshi 2024 年 3 月 2 日
What have you attempted yet?

回答 (0 件)

この質問は閉じられています。

質問済み:

L
L
2024 年 3 月 2 日

閉鎖済み:

2024 年 3 月 2 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by