MATLAB: How to convert a cell array of string s

MATLAB

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

Best Answer

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