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.
2197 Solvers
2538 Solvers
Find out missing number from a vector of 9 elements
245 Solvers
07 - Common functions and indexing 3
317 Solvers
292 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!