Implement str2cell - MATLAB Cody - MATLAB Central

Problem 44627. Implement str2cell

Difficulty:Rate
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

28.57% Correct | 71.43% Incorrect
Last Solution submitted on Apr 19, 2023

Problem Comments

Solution Comments

Show comments
Registration Now Open for MathWorks AUTOMOTIVE CONFERENCE 2025
...
Hello Community, We're excited to announce that registration is now open for the...

Problem Recent Solvers12

Suggested Problems

Community Treasure Hunt

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

Start Hunting!
Go to top of page