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 Solvers68
Suggested Problems
-
743 Solvers
-
Returning a "greater than" vector
236 Solvers
-
Matlab Basics - y as a function of x
443 Solvers
-
Matlab Basics II - Max & Index of Max
236 Solvers
-
166 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!