Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

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

2 vues (au cours des 30 derniers jours)
L
L le 2 Mar 2024
Clôturé : John D'Errico le 2 Mar 2024
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.

Réponses (0)

Cette question est clôturée.

Community Treasure Hunt

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

Start Hunting!

Translated by