This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

When to Analyze Performance

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.

Was this topic helpful?