Cody

# Problem 751. Implement simple rotation cypher

Solution 558043

Submitted on 15 Jan 2015 by Juan Moreta
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
%% inStr = 'doug'; shift = 10; outStr = 'nyeq'; assert(isequal(cypher(inStr, shift),outStr))

alp = a b c d e f g h i j k l m n o p q r s t u v w x y z salp = k l m n o p q r s t u v w x y z a b c d e f g h i j outStr = nyeq

2   Pass
%% inStr = 'thequickbrownfox'; shift = 5; outStr = 'ymjvznhpgwtbsktc'; assert(isequal(cypher(inStr, shift),outStr))

alp = a b c d e f g h i j k l m n o p q r s t u v w x y z salp = f g h i j k l m n o p q r s t u v w x y z a b c d e outStr = ymjvznhpgwtbsktc

3   Pass
%% inStr = 'thecrowfliesatmidnight'; shift = 22; outStr = 'pdaynksbheaowpiezjecdp'; assert(isequal(cypher(inStr, shift),outStr))

alp = a b c d e f g h i j k l m n o p q r s t u v w x y z salp = w x y z a b c d e f g h i j k l m n o p q r s t u v outStr = pdaynksbheaowpiezjecdp

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!