Problem 44256. Average of odd values
Solution Stats
Problem Comments
Solution Comments
-
1 Comment
David Verrelli
on 20 Jun 2018
Using explicit iteration is not the most efficient way of solving this problem, but if you do choose to iterate I would suggest using "linear indexing", per https://au.mathworks.com/help/matlab/math/matrix-indexing.html?s_tid=doc_srchtitle#f1-85511
Problem Recent Solvers67
Suggested Problems
-
Back to basics 22 - Rotate a matrix
860 Solvers
-
259 Solvers
-
194 Solvers
-
The sum of the numbers in the vector
532 Solvers
-
Finding an element in a vector
175 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!