The test suite does not check that the solution is a character string, but the problem definition requires that it should.
Added this check. (I messed it up a bit the first time I tried to do it, so sorry for some interim weirdness.)
str = num2str(A,formatSpec), could replace '
Invalid solution, really
New test suite invalidates this solution.
Maximum running product for a string of numbers
1112 Solvers
middleAsColumn: Return all but first and last element as a column vector
387 Solvers
Get the length of a given vector
3566 Solvers
Find nearest prime number less than input number
268 Solvers
555 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!