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 171373

Submitted on 1 Dec 2012 by Prateep Mukherjee

Correct

12Size
This is the leading solution.
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 =
     2
ans =
     3