Info
此问题已关闭。 请重新打开它进行编辑或回答。
could anyone help me how to split different set of numbers sepaartely
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(2 个)
Shannon Cherry
2018-9-6
regexprep(C, '\{(.*)\}', '$1')
2 个评论
Shannon Cherry
2018-9-6
input = '{1 2 3}'
output = regexprep(input, '\{(.*)\}', '$1')
This is working for me.
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!