Cody

Problem 43740. Create a New_Word

Solution 1114022

Submitted on 2 Feb 2017 by Jan Orwat
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
Old_Word = 'Welcome'; y_correct = 'meelcoy'; assert(strcmp(New_Word(Old_Word),y_correct))

2   Pass
Old_Word = 'Pertinacious'; y_correct = 'usertinacioy'; assert(strcmp(New_Word(Old_Word),y_correct))

3   Pass
Old_Word = 'Homogenous'; y_correct = 'usomogenoy'; assert(strcmp(New_Word(Old_Word),y_correct))

4   Pass
Old_Word = 'Homologous'; y_correct = 'usomologoy'; assert(strcmp(New_Word(Old_Word),y_correct))

5   Pass
Old_Word = 'Extemperaneous'; y_correct = 'usxtemperaneoy'; assert(strcmp(New_Word(Old_Word),y_correct))

6   Pass
Old_Word = 'Deterministic'; y_correct = 'iceterministy'; assert(strcmp(New_Word(Old_Word),y_correct))

Suggested Problems

More from this Author1

Community Treasure Hunt

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

Start Hunting!