I really don't see the point of that kind of problems where you can't use Matlab built-in functions.
which functions?
19329 Solvers
Remove all the words that end with "ain"
1292 Solvers
Which values occur exactly three times?
3817 Solvers
401 Solvers
Sum of odd numbers in a matrix
311 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!