How to convert a cell array of string s

3 次查看(过去 30 天)
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
temp = regexp(s, '(?<=\S)\s+', 'split');
s = vertcat(temp{:});

更多回答(0 个)

类别

Help CenterFile 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