poster
2019-12-10, 20:42
我有一个单元格数组:
X = {1x2} {1x2} X{1} = '' A X{1 2} = 10 113 我希望以这种方式连接子细胞
Y = 10 113A 谢谢,S :-)
回答:
y = cellfun(@(a, b) sprintf('%d%s', b, a), x{1}, x{2}, 'UniformOutput', false);
更多&回答... (https://stackoverflow.com/questions/3179854)
X = {1x2} {1x2} X{1} = '' A X{1 2} = 10 113 我希望以这种方式连接子细胞
Y = 10 113A 谢谢,S :-)
回答:
y = cellfun(@(a, b) sprintf('%d%s', b, a), x{1}, x{2}, 'UniformOutput', false);
更多&回答... (https://stackoverflow.com/questions/3179854)