Cody

Solution 719160

Submitted on 21 Aug 2015 by Ian Riley
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 spaces = 0 6 sOut = hello 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. spaces = 0 5 8 12 18 23 25 30 35 42 43 sOut = This is the first time I have used MATLAB. sOut = Tihs is the first time I have used MATLAB. sOut = Tihs is the first time I have used MATLAB. sOut = Tihs is the first time I have used MATLAB. sOut = Tihs is the fsrit time I have used MATLAB. sOut = Tihs is the fsrit tmie I have used MATLAB. sOut = Tihs is the fsrit tmie I have used MATLAB. sOut = Tihs is the fsrit tmie I hvae used MATLAB. sOut = Tihs is the fsrit tmie I hvae uesd MATLAB. sOut = Tihs is the fsrit tmie I hvae uesd MALTAB. sOut = Tihs is the fsrit tmie I hvae uesd MALTAB.