Explanation

Use clear functions only if you need to clear all scripts and functions. In addition to clearing scripts and functions, it also clears persistent variables and MEX functions. Using clear functions causes MATLAB to recompile previously cached code, and can decrease performance.


Suggested Action

When possible, replace instances of clear functions in your code.

For more information, see clear.