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 125652

Submitted on 9 Aug 2012 by yuval tr

Correct

23Size
Leading solution size is 11.
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
 
%%
LynLyn='You are @#$#@*& very kind';
[Lyy Lnn]=LyyLnn(LynLyn);
Ly='Youareverykind'; Ln='  @#$#@*&  ';
assert(isequal(Ly,Lyy)&isequal(Ln,Lnn))

                    
2
Pass
 
%%
LynLyn='Please write me soon';
[Lyy Lnn]=LyyLnn(LynLyn);
Ly='Pleasewritemesoon'; Ln='   ';
assert(isequal(Ly,Lyy)&isequal(Ln,Lnn))

                    
3
Pass
 
%%
LynLyn='12+12=23 wrong';
[Lyy Lnn]=LyyLnn(LynLyn);
Ly='wrong'; Ln='12+12=23 ';
assert(isequal(Ly,Lyy)&isequal(Ln,Lnn))