Subwords of a word
MuPAD® notebooks are not recommended. Use MATLAB® live scripts instead.
MATLAB live scripts support most MuPAD functionality, though there are some differences. For more information, see Convert MuPAD Notebooks to MATLAB Live Scripts.
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])