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.
To clear a particular output region in your notebook:
Click the output region you want to delete or click the adjacent input region.
Select Edit>Delete Output
To clear all the outputs in your current notebook, select Edit>Delete All Outputs.