Cody

Solution 1417149

Submitted on 15 Jan 2018 by shimon zusmanovsky
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
LynLyn='You are @#$#@*& very kind'; [Lyy Lnn]=LyyLnn(LynLyn); Ly='Youareverykind'; Ln=' @#$#@*& '; assert(isequal(Ly,Lyy)&isequal(Ln,Lnn))

i = 1×25 logical array 1 1 1 0 1 1 1 0 0 0 0 0 0 0 0 0 1 1 1 1 0 1 1 1 1 Lyy = 'Youareverykind' Lnn = ' @#$#@*& '

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

i = 1×20 logical array 1 1 1 1 1 1 0 1 1 1 1 1 0 1 1 0 1 1 1 1 Lyy = 'Pleasewritemesoon' 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))

i = 1×14 logical array 0 0 0 0 0 0 0 0 0 1 1 1 1 1 Lyy = 'wrong' Lnn = '12+12=23 '

Suggested Problems

More from this Author100