for u=1:numel(string),for j=u:numel(string)-2,try a=eval([string(1:u) string(j+2:end)]);catch(b); a=0;end;if a~=0,'',['here is it : ' string(1:u) string(j+2:end)],end;end;end
string = fprintf('%s','word')
wordans =
ans = here is it : fprintf('word')
sans =
ans = here is it : fprintf('s','word')
wordans =
ans = here is it : fprintf('word')
ordans =
ans = here is it : fprintf('ord')
rdans =
ans = here is it : fprintf('rd')
dans =
ans = here is it : fprintf('d')
ordans =
ans = here is it : fprintf('%s','ord')
rdans =
ans = here is it : fprintf('%s','rd')
dans =
ans = here is it : fprintf('%s','d')
wrdans =
ans = here is it : fprintf('%s','wrd')
wdans =
ans = here is it : fprintf('%s','wd')
wans =
ans = here is it : fprintf('%s','w')
wodans =
ans = here is it : fprintf('%s','wod')
woans =
ans = here is it : fprintf('%s','wo')
worans =
ans = here is it : fprintf('%s','wor')