Hi ,
I have a string 2-1 . I want to split this into Two different strings 2 and 1.
Can someone please throw some light on how to use the split string function.
Thanks in Advance.

2 个评论

oops..... just got it
s2 = regexp(string, '-', 'split')
You should put this comment as an answer below, and then accept that answer. That will help people looking for similar solutions later.

请先登录,再进行评论。

 采纳的回答

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Characters and Strings 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by