Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
sIn = 'hello'
sOut = 'hlleo'
assert(isequal(scrambleText(sIn),sOut))
sIn =
hello
sOut =
hlleo
ans =
hlleo
|
2 | Pass |
%%
sIn = 'This is the first time I have used MATLAB.'
sOut = 'Tihs is the fsrit tmie I hvae uesd MALTAB.'
assert(isequal(scrambleText(sIn),sOut))
sIn =
This is the first time I have used MATLAB.
sOut =
Tihs is the fsrit tmie I hvae uesd MALTAB.
ans =
Tihs is the fsrit tmie I hvae uesd MALTAB.
|
2486 Solvers
Program an exclusive OR operation with logical operators
639 Solvers
232 Solvers
Find a subset that divides the vector into equal halves
332 Solvers
Generate a vector like 1,2,2,3,3,3,4,4,4,4
3613 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!