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.
Solving Quadratic Equations (Version 1)
429 Solvers
Replace odd number in given matrix by zero
106 Solvers
275 Solvers
194 Solvers
Matlab Basics - Set unwanted parts of a vector to zero
201 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!