Info
This question is closed. Reopen it to edit or answer.
could anyone help me how to split different set of numbers sepaartely
1 view (last 30 days)
Show older comments
i am having three different sets of numbers displayed in the same line as the output say for example {1} {2 3} {4}.Could anyone please help me how to split it in three different lines inorder to get the output as 1 2 3 4
1 Comment
Answers (2)
Shannon Cherry
on 6 Sep 2018
regexprep(C, '\{(.*)\}', '$1')
2 Comments
Shannon Cherry
on 6 Sep 2018
input = '{1 2 3}'
output = regexprep(input, '\{(.*)\}', '$1')
This is working for me.
This question is closed.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!