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
Find the alphabetic word product
2338 Solvers
Project Euler: Problem 10, Sum of Primes
724 Solvers
Back to basics 4 - Search Path
325 Solvers
206 Solvers
528 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!