Cody

Solution 1744035

Submitted on 6 Mar 2019 by Michael Cappello
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))

Lyy = 1×14 cell array {'Y'} {'o'} {'u'} {'a'} {'r'} {'e'} {'v'} {'e'} {'r'} {'y'} {'k'} {'i'} {'n'} {'d'} Lyy = 'Youareverykind' Lnn = 1×11 cell array {' '} {' '} {'@'} {'#'} {'$'} {'#'} {'@'} {'*'} {'&'} {' '} {' '} Lnn = ' @#$#@*& '

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

Lyy = 1×17 cell array {'P'} {'l'} {'e'} {'a'} {'s'} {'e'} {'w'} {'r'} {'i'} {'t'} {'e'} {'m'} {'e'} {'s'} {'o'} {'o'} {'n'} Lyy = 'Pleasewritemesoon' Lnn = 1×3 cell array {' '} {' '} {' '} 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))

Lyy = 1×5 cell array {'w'} {'r'} {'o'} {'n'} {'g'} Lyy = 'wrong' Lnn = 1×9 cell array {'1'} {'2'} {'+'} {'1'} {'2'} {'='} {'2'} {'3'} {' '} Lnn = '12+12=23 '

Suggested Problems

More from this Author100