1.字符串分割
S = regexp(str, char, 'split')
例子:
S = regexp(fileName, '\.', 'split');
newName = [ S{1} '.txt'];
1.字符串分割
S = regexp(str, char, 'split')
例子:
S = regexp(fileName, '\.', 'split');
newName = [ S{1} '.txt'];
转载于:https://www.cnblogs.com/huangshiyu13/p/5778332.html