1.cell 转 字符串:char()
例:
>> filename={'randomCenter.txt','result/specialCenter.txt'};
>> char(filename(1))
ans =
randomCenter.txt
2.字符串的连接:
>> filename={'randomCenter.txt','result/specialCenter.txt'};
>> s = char(filename(1));
>> [s(1:6),'XXXX',s(7:end)]
ans =
randomXXXXCenter.txt