Cody

Solution 1913061

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

ans = logical 0 ans = logical 0 s2 = 86 0 121 124 131 114 0 90 78 97 89 78 79

Assertion failed.

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

ans = logical 0 ans = logical 0 s2 = 86 0 0 0 0 90 78 97 89 78 79 0 0

Assertion failed.

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

ans = logical 0 ans = logical 0 s2 = Columns 1 through 30 97 117 114 0 126 130 118 112 120 0 115 124 133 0 128 129 130 122 111 121 114 113 0 124 131 114 127 0 129 117 Columns 31 through 55 114 0 112 124 123 115 130 128 118 123 116 0 118 123 128 129 127 130 112 129 118 124 123 128 0

Assertion failed.

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

ans = logical 0 ans = logical 0 s2 = Columns 1 through 30 96 123 110 125 114 0 120 118 121 121 128 0 81 130 122 111 121 114 113 124 127 114 0 124 123 0 125 110 116 114 Columns 31 through 60 0 0 0 0 0 0 78 121 128 124 0 0 129 117 114 127 114 0 118 128 0 123 124 0 96 110 123 129 110 0

Assertion failed.

Suggested Problems

More from this Author95