Why didn't I think of that? I used the relatively more elaborate regexp. I guess I didn't realize that isletter existed as a function. Well, that's why we work with Cody.
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))
|
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))
|
Find the sum of all the numbers of the input vector
31946 Solvers
1598 Solvers
369 Solvers
Back to basics - mean of corner elements of a matrix
297 Solvers
1159 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!