Cody

Solution 1939847

Submitted on 17 Sep 2019 by Charles Juenger
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
sIn = 'hello' sOut = 'hlleo' assert(isequal(scrambleText(sIn),sOut))

sIn = 'hello' sOut = 'hlleo' a2 = 1 2 3 4 5 sOut = 'hlleo'

2   Pass
sIn = 'This is the first time I have used MATLAB.' sOut = 'Tihs is the fsrit tmie I hvae uesd MALTAB.' assert(isequal(scrambleText(sIn),sOut))

sIn = 'This is the first time I have used MATLAB.' sOut = 'Tihs is the fsrit tmie I hvae uesd MALTAB.' a2 = Columns 1 through 30 1 2 3 4 6 7 9 10 11 13 14 15 16 17 19 20 21 22 24 26 27 28 29 31 32 33 34 36 37 38 Columns 31 through 33 39 40 41 sOut = 'Tihs is the fsrit tmie I hvae uesd MALTAB.'

Suggested Problems

More from this Author95