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

 采纳的回答

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

更多回答(0 个)

类别

在 帮助中心 和 File Exchange 中查找有关 Characters and Strings 的更多信息

产品

版本

R2018b

标签

Community Treasure Hunt

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

Start Hunting!

Translated by