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

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?

Respuestas (1)

Azzi Abdelmalek
Azzi Abdelmalek el 15 de Jun. de 2016
Editada: Azzi Abdelmalek el 15 de Jun. de 2016
a='abc def ghi'
b=regexp(a,'\s+','split')
Or
b=regexp(a,'\S+','match')

1 comentario

upol's "Answer" moved here:
i cannot use regexp for matlab c coder. is there any other alternative

Iniciar sesión para comentar.

Categorías

Más información sobre Characters and Strings en Centro de ayuda y File Exchange.

Productos

Etiquetas

Preguntada:

el 15 de Jun. de 2016

Comentada:

el 17 de Feb. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by