Problem 44627. Implement str2cell
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
Problem Comments
-
1 Comment
Dyuman Joshi
on 17 May 2022
Test suite has been updated to include double and triple digits numbers, to make it more challenging.
Solution Comments
Show commentsProblem Recent Solvers12
Suggested Problems
-
The Goldbach Conjecture, Part 2
2367 Solvers
-
Calculate the area of a triangle between three points
3148 Solvers
-
Area of an equilateral triangle
6391 Solvers
-
Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock.
942 Solvers
-
Please check if calorie intake is less than 300 kcal.
57 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!