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

 Akzeptierte Antwort

Walter Roberson
Walter Roberson am 3 Mär. 2019

0 Stimmen

temp = regexp(s, '(?<=\S)\s+', 'split');
s = vertcat(temp{:});

1 Kommentar

Mai Le Thai
Mai Le Thai am 3 Mär. 2019
Thanks for your help!
Can you please explain this '(?<=\S)\s+'?

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

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

Produkte

Version

R2018b

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by