please either fix it or remove it from the Strings II badge list
The test suite should be working now. I fixed the parentheses problem mentioned in the other comments (it should now recognize left and right parentheses as different). There were also seven spaces between words in the test suite, though the encoded description indicated five—that has been fixed, as well.
I think this test suite is broken, Even if I return a copy of y_correct the assertion fails. Also the answer for test 2 is incorrect, the '(' is wrong both parens are the code for ')'. running the test code in my matlab the assertions do not fail.
You are correct that the test suite is messed up. I just submitted one with the correct Morse Code string for '(' [which failed], and one with the incorrect substitution [which passed].
Andrew Dobrovolc was right, the "(" is confused with ")".
Reverse the Words (not letters) of a String
Back to basics 12 - Input Arguments
Multiply a column by a row
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
The sum of individual numbers...
Poker Card Deal!
Dice face matrix!
Count consecutive 0's in between values of 1
NO _________ ALLOWED....
Find the treasures in MATLAB Central and discover how the community can help you!
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office