Subwords of a word
This functionality does not run in MATLAB.
a list of all subwords (sublists) of the list
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,
There are 8 subwords
of the word
[a, b, c]:
combinat::subwords([a, b, c])