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 Kommentare

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

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

sujayandra vaddagiri
sujayandra vaddagiri am 26 Mai 2014

0 Stimmen

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

Weitere Antworten (0)

Kategorien

Mehr zu Characters and Strings finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by