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 件のコメント

sujayandra vaddagiri
sujayandra vaddagiri 2013 年 6 月 19 日
oops..... just got it
s2 = regexp(string, '-', 'split')
the cyclist
the cyclist 2013 年 6 月 19 日
You should put this comment as an answer below, and then accept that answer. That will help people looking for similar solutions later.

サインインしてコメントする。

 採用された回答

sujayandra vaddagiri
sujayandra vaddagiri 2014 年 5 月 26 日

0 投票

s2 = regexp(string, '-', 'split')

その他の回答 (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