This solution is outdated. To rescore this solution, sign in.
-
2 Comments
George Baker
on 20 Sep 2019
Test 1 doesn't work, I literally have the same result and it fails, but test 2 passes
goc3
on 23 Oct 2019
Your function produces sOut in string format (in the last line of the function). The test suite defines the variables as character arrays instead of strings. These two data types cannot be directly compared—i.e., you'll have to return a character array.
Also, when I run your function, it returns "hello" rather than "hlleo".
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!