Separate strings w.r.t to semicolon

i have a string like below in one cell(one row & one column)
a;b;c;d;f;e;g;t;y;s
i would like to separate in to individual cells with reference as ;

 Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 23 de Oct. de 2012
x={'a;b;c;d;f;e;g;t;y;s'}
y=regexp(x,';','split')
y{:}

Más respuestas (1)

Sachin Ganjare
Sachin Ganjare el 23 de Oct. de 2012

0 votos

str = 'a;b;c;d;f;e;g;t;y;s';
Out = strread(str,'%s','delimiter',';');
Hope it helps!!!

2 comentarios

Jan
Jan el 27 de Nov. de 2012
Unfortunately STRREAD is deprecated and will vanish in a future Matlab release. I cannot imagine, why removing such important functions is helpful for anything.
Out = textscan(str, '%s', 'delimiter', ';');

Iniciar sesión para comentar.

Categorías

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

Etiquetas

Preguntada:

el 23 de Oct. de 2012

Community Treasure Hunt

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

Start Hunting!

Translated by