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.
given 3 sides, find area of this triangle
683 Solvers
341 Solvers
Back to basics 21 - Matrix replicating
1058 Solvers
217 Solvers
266 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!