Subwords of a word
This functionality does not run in MATLAB.
The function combinat::subwords(w) returns a list of all subwords (sublists) of the list w.
A subword of a word w is a word obtained by deleting the letters at some of the positions in w. A subword is generated as many times as it appears in the word.
To obtain each subword only once, combinat::powerset should be used.