Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
sIn = 'hello'
sOut = 'hlleo'
assert(isequal(scrambleText(sIn),sOut))
sIn =
'hello'
sOut =
'hlleo'
words =
1×1 cell array
{'hlleh'}
|
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.'
words =
1×9 cell array
{'TihT'} {'is'} {'the'} {'first'} {'time'} {'I'} {'have'} {'used'} {'MATLAB'}
words =
1×9 cell array
{'Tihs'} {'ii'} {'the'} {'first'} {'time'} {'I'} {'have'} {'used'} {'MATLAB'}
words =
1×9 cell array
{'Tihs'} {'is'} {'tht'} {'first'} {'time'} {'I'} {'have'} {'used'} {'MATLAB'}
words =
1×9 cell array
{'Tihs'} {'is'} {'the'} {'fsrif'} {'time'} {'I'} {'have'} {'used'} {'MATLAB'}
words =
1×9 cell array
{'Tihs'} {'is'} {'the'} {'fsrit'} {'tmit'} {'I'} {'have'} {'used'} {'MATLAB'}
words =
1×9 cell array
{'Tihs'} {'is'} {'the'} {'fsrit'} {'tmie'} {'I'} {'have'} {'used'} {'MATLAB'}
words =
1×9 cell array
{'Tihs'} {'is'} {'the'} {'fsrit'} {'tmie'} {'I'} {'hvah'} {'used'} {'MATLAB'}
words =
1×9 cell array
{'Tihs'} {'is'} {'the'} {'fsrit'} {'tmie'} {'I'} {'hvae'} {'uesu'} {'MATLAB'}
words =
1×9 cell array
{'Tihs'} {'is'} {'the'} {'fsrit'} {'tmie'} {'I'} {'hvae'} {'uesd'} {'MALTAM'}
|
Least common multiple of many numbers
189 Solvers
Sum all integers from 1 to 2^n
8414 Solvers
Getting the absolute index from a matrix
211 Solvers
Test if two numbers have the same digits
187 Solvers
238 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!