Problem 45158. Calculate the average value of the elements in the array
Calculate the average value of the elements in the array
Solution Stats
Problem Comments
-
4 Comments
Show
1 older comment
ME
on 8 Oct 2019
The solution for this problem doesn't make any sense!!!
William
on 8 Oct 2019
The correct result is 4, not 8.
goc3
on 18 Mar 2021
The test suite has been corrected and expanded.
Stephan Mc Lean
on 14 Jul 2025
Intriguing problem. Hint: To solve, you need to consider "all" the elements for the average though...
Solution Comments
Show commentsProblem Recent Solvers1467
Suggested Problems
-
Return the 3n+1 sequence for n
8396 Solvers
-
The Hitchhiker's Guide to MATLAB
3353 Solvers
-
Convert a numerical matrix into a cell array of strings
2216 Solvers
-
Calculate the mean of each half of a matrix
635 Solvers
-
Determine if Input is Oddish or Evenish (Odd/Even Sum of Digits)
309 Solvers
More from this Author7
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!