How to convert a cell array of string s

3 Ansichten (letzte 30 Tage)
Mai Le Thai
Mai Le Thai am 3 Mär. 2019
Kommentiert: Mai Le Thai am 3 Mär. 2019
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
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 Help Center und File Exchange

Tags

Produkte


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by