The misc Library

MuPAD® notebooks will be removed in a future release. 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.


Use only in the MuPAD Notebook Interface. This functionality does not run in MATLAB.

The misc library contains some miscellaneous utility functions.

The package functions are called using the package name misc and the name of the function. E.g., use

myplus := misc::genassop(_plus, 0)

to create your own n-ary plus operator. (This is not really useful, since _plus is an n-ary operator, anyway.)

This mechanism avoids naming conflicts with other library functions. If this is found to be inconvenient, then the routines of the misc package may be exported via use. E.g., after calling

use(misc, genassop)

the function misc::genassop may be called directly:

myplus := genassop(_plus, 0)

All routines of the misc package are exported simultaneously by


The functions available in the misc library can be listened with:


We would especially like to thank Raymond Manzoni for contributing the function misc::pslq.