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.
Symbolic computations can be very time consuming. For many tasks, MuPAD® provides its own, optimized functions. When you use these functions, the system typically chooses algorithms that provide the best performance for your task.
However, in some cases you might want to measure and investigate your code performance. This task is also called profiling. For example, profiling is helpful when you:
Feel that your code runs too slowly.
Want to estimate the performance of a particular computation algorithm.
Want to compare performances of different algorithms.
Define and use your own data types and methods.
MuPAD provides tools to measure the running time of a particular code snippet or the whole MuPAD session. The system also provides the profiling tool to help you find and eliminate performance bottlenecks in your code.