Cody

Solution 1913375

Submitted on 27 Aug 2019
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   Fail
s1 = 'I love MATLAB'; s2_correct = 'V ybir ZNGYNO'; assert(isequal(rot13(s1),s2_correct))

abc1 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMN' abc2 = 'abcdefghijklmnopqrstuvwxyzabcdefghijklmn' t = 9 35 t1 = 9 s1 = 'V love MATLAB' t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 13 39 t1 = 13 s1 = 'V love ZATLAB' t = 1 27 t1 = 1 s1 = 'V love ZNTLAB' t = 20 t1 = 20 s1 = 'V love ZNGLAB' t = 12 38 t1 = 12 s1 = 'V love ZNGYAB' t = 1 27 t1 = 1 s1 = 'V love ZNGYNB' t = 2 28 t1 = 2 s1 = 'V love ZNGYNO' s1 = 'V love ZNGYNO'

Output argument "s2" (and maybe others) not assigned during call to "rot13". Error in Test1 (line 3) assert(isequal(rot13(s1),s2_correct))

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

abc1 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMN' abc2 = 'abcdefghijklmnopqrstuvwxyzabcdefghijklmn' t = 9 35 t1 = 9 s1 = 'V <3 MATLAB!!' t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 13 39 t1 = 13 s1 = 'V <3 ZATLAB!!' t = 1 27 t1 = 1 s1 = 'V <3 ZNTLAB!!' t = 20 t1 = 20 s1 = 'V <3 ZNGLAB!!' t = 12 38 t1 = 12 s1 = 'V <3 ZNGYAB!!' t = 1 27 t1 = 1 s1 = 'V <3 ZNGYNB!!' t = 2 28 t1 = 2 s1 = 'V <3 ZNGYNO!!' t = 1×0 empty double row vector t = 1×0 empty double row vector s1 = 'V <3 ZNGYNO!!'

Output argument "s2" (and maybe others) not assigned during call to "rot13". Error in Test2 (line 3) assert(isequal(rot13(s1),s2_correct))

3   Fail
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))

abc1 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMN' abc2 = 'abcdefghijklmnopqrstuvwxyzabcdefghijklmn' t = 20 t1 = 20 s1 = 'Ghe quick fox stumbled over the confusing instructions.' t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector s1 = 'Ghe quick fox stumbled over the confusing instructions.'

Output argument "s2" (and maybe others) not assigned during call to "rot13". Error in Test3 (line 3) assert(isequal(rot13(s1),s2_correct))

4   Fail
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))

abc1 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMN' abc2 = 'abcdefghijklmnopqrstuvwxyzabcdefghijklmn' t = 19 t1 = 19 s1 = 'Fnape kills Dumbledore on page 606. Also, there is no Santa.' t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 4 30 t1 = 4 s1 = 'Fnape kills Qumbledore on page 606. Also, there is no Santa.' t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1 27 t1 = 1 s1 = 'Fnape kills Qumbledore on page 606. Nlso, there is no Santa.' t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 19 t1 = 19 s1 = 'Fnape kills Qumbledore on page 606. Nlso, there is no Fanta.' t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector t = 1×0 empty double row vector s1 = 'Fnape kills Qumbledore on page 606. Nlso, there is no Fanta.'

Output argument "s2" (and maybe others) not assigned during call to "rot13". Error in Test4 (line 3) assert(isequal(rot13(s1),s2_correct))