Info

此问题已关闭。 请重新打开它进行编辑或回答。

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

2 次查看(过去 30 天)
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.

回答(0 个)

此问题已关闭。

Community Treasure Hunt

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

Start Hunting!

Translated by