Operations on Lists

Create, analyze, modify, and convert lists


MuPAD® notebooks will be removed in a future release. Use MATLAB® live scripts instead.

To convert a MuPAD notebook file to a MATLAB live script file, see convertMuPADNotebook. MATLAB live scripts support most MuPAD functionality, although there are some differences. For more information, see Convert MuPAD Notebooks to MATLAB Live Scripts.

MuPAD Functions

listlib::insertInsert an element into a list
listlib::insertAtInsert an element into a list at a given position
listlib::mergeMerging two ordered lists
listlib::removeDuplicatesRemoves duplicate entries
listlib::removeDupSortedRemove duplicates of any element from ordered lists
listlib::setDifferenceRemove elements from a list
listlib::singleMergeMerging of two ordered lists without duplicates
listlib::sublistSearch sublists
numeric::sortSort a numerical list
poly2listConvert a polynomial to a list of terms
sortSort a list
text2listSplit a character string into a list of substrings



Lists represent ordered data structures.