Cody

Solution 1120786

Submitted on 11 Feb 2017 by Jihye Sofia Seo
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
x = 'Hello World!'; y_correct = 'Ifmmp Xpsme!'; assert(isequal(si(x),y_correct))

addLoc = 1 2 3 4 5 7 8 9 10 11 subLoc = 1×0 empty double row vector

2   Pass
x = 'Can I help you?'; y_correct = 'Dbo J ifmq zpv?'; assert(isequal(si(x),y_correct))

addLoc = 1 2 3 5 7 8 9 10 12 13 14 subLoc = 1×0 empty double row vector

3   Pass
x = 'Mary had a liitle lamb.'; y_correct = 'Nbsz ibe b mjjumf mbnc.'; assert(isequal(si(x),y_correct))

addLoc = Columns 1 through 16 1 2 3 4 6 7 8 10 12 13 14 15 16 17 19 20 Columns 17 through 18 21 22 subLoc = 1×0 empty double row vector