Problem 43672. String Array Basics, Part 2: Convert String Array to Cell Array; No Missing Values

Solution 3205691

Submitted on 14 Oct 2020 by Malcolm Wildgoose
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
x = string({'I','love','MATLAB'}); y_correct = {'I','love','MATLAB'}; assert(isequal(str2cell(x),y_correct))

2   Pass
x = string({'I','love','MATLAB';'I','love','Cody'}); y_correct = {'I','love','MATLAB' 'I','love','Cody'}; assert(isequal(str2cell(x),y_correct))

Suggested Problems

More from this Author30

Community Treasure Hunt

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

Start Hunting!