How to convert a cell array of string s

I want to convert a cell of string into another like this. How can i do this? Thanks!
from hi.PNG into ba.PNG

 Respuesta aceptada

Walter Roberson
Walter Roberson el 3 de Mzo. de 2019
temp = regexp(s, '(?<=\S)\s+', 'split');
s = vertcat(temp{:});

1 comentario

Mai Le Thai
Mai Le Thai el 3 de Mzo. de 2019
Thanks for your help!
Can you please explain this '(?<=\S)\s+'?

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

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

Productos

Versión

R2018b

Etiquetas

Preguntada:

el 3 de Mzo. de 2019

Comentada:

el 3 de Mzo. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by