-
1条评论
Abdeslam Aanna2017年3月19日
我的解决方案是:
函数out_str = celltr_joiner(in_cell,delim)
y = in_cell;
y(find(cellfun(@isementy,cellfun(@strtrim,y,'siformOutput',false),false)))))= [];
out_str = strjoin(y);
out_str(find(out_str ==''))= delim;
结尾
在MATLAB上,所有测试通过,但在Cody网站上第二个测试失败!