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 Solvers60
Suggested Problems
-
2914 Solvers
-
Find out missing number from a vector of 9 elements
262 Solvers
-
convert matrix to single column
351 Solvers
-
317 Solvers
-
Replace every 3rd element in a vector with 4
200 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!