Local Functions
After nested functions, MATLAB gives precedence to local functions declared in a file. Thus, so far, we have the following order.
Variables > Imported functions > Nested functions > Local functions (not nested)
Function Precedence Order in MATLAB
In this article, we shall discuss the function precedence order in MATLAB. The first thing to keep in mind is that the order explained below is defined for an individual scope (current workspace); it does not hold when there are multiple workspaces in play.
Now, let us explore the order individually.