How can I use strsplit, or something similar, in version 2012a?

3 views (last 30 days)
Is there a way to update my version of Matlab? I am using the student version 2012a which has been working fine up until I need to use strsplit. Alternately is there a way to do something similar in an older version?

Answers (1)

Azzi Abdelmalek
Azzi Abdelmalek on 15 Jun 2016
Edited: Azzi Abdelmalek on 15 Jun 2016
a='abc def ghi'
b=regexp(a,'\s+','split')
Or
b=regexp(a,'\S+','match')
  1 Comment
Stephen23
Stephen23 on 17 Feb 2018
upol's "Answer" moved here:
i cannot use regexp for matlab c coder. is there any other alternative

Sign in to comment.

Categories

Find more on Characters and Strings in Help Center and File Exchange

Tags

Products

Community Treasure Hunt

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

Start Hunting!