Cody

# Problem 45435. Capitalize

Solution 2203582

Submitted on 10 Apr 2020 by Binbin Qi
• Size: 12
• This is the leading solution.
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
xx = {'alphaS','123ff','newaz','Newaz'}; y_correct ={'Alphas','123Ff','Newaz','Newaz'}; assert(isequal(capitalize_names_2(xx),y_correct))

ans = 1×4 cell array {'Alphas'} {'123Ff'} {'Newaz'} {'Newaz'}

2   Pass
xx = {'**GldosgGf','asbd','\$\$\$123','ASDR'}; y_correct ={'**Gldosggf','Asbd','\$\$\$123','Asdr'}; assert(isequal(capitalize_names_2(xx),y_correct))

ans = 1×4 cell array {'**Gldosggf'} {'Asbd'} {'\$\$\$123'} {'Asdr'}

3   Pass
xx = {'spain','Italy','San-Fransisco','United-arab-amirates'}; y_correct ={'Spain','Italy','San-fransisco','United-arab-amirates'}; assert(isequal(capitalize_names_2(xx),y_correct))

ans = 1×4 cell array {'Spain'} {'Italy'} {'San-fransisco'} {'United-arab-amirates'}

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!