Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Solution 199664

Submitted on 2 Feb 2013 by Claudio Gelmi

Correct

12Size
Leading solution size is 12.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test
Code Input and Output
1
Pass
 
1 %%
x = 'Hello World!';
y_correct = 'Ifmmp Xpsme!';
assert(isequal(si(x),y_correct))
2 %%
x = 'Can I help you?';
y_correct = 'Dbo J ifmq zpv?';
assert(isequal(si(x),y_correct))
3 %%
x = 'Mary had a liitle lamb.';
y_correct = 'Nbsz ibe b mjjumf mbnc.';
assert(isequal(si(x),y_correct))
ans =
     1
ans =
Ifmmp Xpsme!
ans =
     2
ans =
Dbo J ifmq zpv?
ans =
     3
ans =
Nbsz ibe b mjjumf mbnc.