Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
sentence = 'this is BETTER than C++';
corrected = 'This Is Better Than C++';
assert(isequal(autoCase(sentence), corrected))
|
2 | Pass |
sentence = 'hEy, tHis iS vErY wroNg!';
corrected = 'Hey, This Is Very Wrong!';
assert(isequal(autoCase(sentence), corrected))
|
3 | Pass |
sentence = 'tHIS sENTENCE wILL bE iNVERTED';
corrected = 'This Sentence Will Be Inverted';
assert(isequal(autoCase(sentence), corrected))
|
4 | Pass |
sentence = 'This Sentence Will Not Be Changed';
corrected = 'This Sentence Will Not Be Changed';
assert(isequal(autoCase(sentence), corrected))
|
5 | Pass |
sentence = 'HELLO THERE';
corrected = 'Hello There';
assert(isequal(autoCase(sentence), corrected))
|
6 | Pass |
sentence = 'AlTeRnAtInG cApS';
corrected = 'Alternating Caps';
assert(isequal(autoCase(sentence), corrected))
|
Make the vector [1 2 3 4 5 6 7 8 9 10]
35567 Solvers
1599 Solvers
Increment a number, given its digits
562 Solvers
327 Solvers
Back to Basics - Find no. of elements in a matrix?
216 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!