I really don't see the point of that kind of problems where you can't use Matlab built-in functions.
which functions?
836 Solvers
3739 Solvers
Vectorize the digits of an Integer
271 Solvers
MATCH THE STRINGS (2 CHAR) very easy
251 Solvers
3115 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!