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

 採用された回答

Walter Roberson
Walter Roberson 2019 年 3 月 3 日

0 投票

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

1 件のコメント

Mai Le Thai
Mai Le Thai 2019 年 3 月 3 日
Thanks for your help!
Can you please explain this '(?<=\S)\s+'?

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeCharacters and Strings についてさらに検索

製品

リリース

R2018b

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by