Matlab之字符串处理

1.字符串分割

S = regexp(str, char, 'split')

例子:

    S = regexp(fileName, '\.', 'split');

    newName = [ S{1} '.txt'];

posted @ 2016-08-16 23:52  Shiyu_Huang  阅读(224)  评论(0)    收藏  举报