????
Please revise problem statement to indicate that summation is required, such as:
"the function avg_gain(odds,bets) should return the SUM of each bet's average gain (averaged for each possible outcome)"
It is not obvious from the example.
As stated by David, it is required to sum the averages after the calculation.
1429 Solvers
493 Solvers
Sum of odd numbers in a matrix
318 Solvers
312 Solvers
95 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!