getwords.m

来自「This code can parse any image in matlab.」· M 代码 · 共 20 行

M
20
字号
function w=getwords(s)
% w=getwords(s)
%
% Returns a cell array with the individual words in the string 's'

s = upper2space(s);
w = strread(s, '%s', 'delimiter', '-_., ');
w = strrep(w, '(', '');
w = strrep(w, ')', '');
w = strrep(w, '''', '');
w = strrep(w, '"', '');
w = strrep(w, ';', '');
w = strrep(w, '&', '');
w = strrep(w, '?', '');
w = strrep(w, '!', '');




⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?