You really shouldn't give away the answer in the test suite. ;-)
You could change the test suite to something like:
assert (str2num(fliplr(num2str(y))) == y*4);
Although this also sort of gives away one possible solution.
12411 Solvers
Project Euler: Problem 5, Smallest multiple
401 Solvers
Back to basics 6 - Column Vector
909 Solvers
Flip the main diagonal of a matrix
506 Solvers
122 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!