Cody

Problem 44627. Implement str2cell

Created by Hamza Bourbouh in Community

You are given a String that is equivalent to a cell array of scalars or vectors. Transform this String to its equivalent Cell array. We assume the input string contains only scalars or vectors of double.

for example, this input String

'{1,2,[3 6],4}'

Should produce this output:

1×4 cell array
    {[1]}    {[2]}    {1×2 double}    {[4]}

Solution Stats

44.44% Correct | 55.56% Incorrect
Last solution submitted on Mar 03, 2019

Recent Solvers10

Suggested Problems