Cody

Solution 454366

Submitted on 12 Jun 2014 by goc3
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 sIn = hello sIn = hlleo sIn = 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. sIn = Tihs is the first tmie I hvae uesd MATLAB. sIn = Tihs is the fsrit tmie I hvae uesd MATLAB. sIn = Tihs is the fsrit tmie I hvae uesd MALTAB.