Cody

Solution 844567

Submitted on 6 Mar 2016 by Thonigon
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
s1 = 'I love MATLAB'; s2_correct = 'V ybir ZNGYNO'; assert(isequal(rot13(s1),s2_correct))

i = 1 8 9 10 11 12 13 i = 3 4 5 6

2   Pass
s1 = 'I <3 MATLAB!!'; s2_correct = 'V <3 ZNGYNO!!'; assert(isequal(rot13(s1),s2_correct))

i = 1 6 7 8 9 10 11 i = []

3   Pass
s1 = 'The quick fox stumbled over the confusing instructions.'; s2_correct = 'Gur dhvpx sbk fghzoyrq bire gur pbashfvat vafgehpgvbaf.'; assert(isequal(rot13(s1),s2_correct))

i = 1 i = Columns 1 through 16 2 3 5 6 7 8 9 11 12 13 15 16 17 18 19 20 Columns 17 through 32 21 22 24 25 26 27 29 30 31 33 34 35 36 37 38 39 Columns 33 through 46 40 41 43 44 45 46 47 48 49 50 51 52 53 54

4   Pass
s1 = 'Snape kills Dumbledore on page 606. Also, there is no Santa.'; s2_correct = 'Fancr xvyyf Qhzoyrqber ba cntr 606. Nyfb, gurer vf ab Fnagn.'; assert(isequal(rot13(s1),s2_correct))

i = 1 13 37 55 i = Columns 1 through 16 2 3 4 5 7 8 9 10 11 14 15 16 17 18 19 20 Columns 17 through 32 21 22 24 25 27 28 29 30 38 39 40 43 44 45 46 47 Columns 33 through 40 49 50 52 53 56 57 58 59