MATLAB: How to check whether a function is user-defined or belongs to a MATLAB toolbox

functionlocateMATLABnamesource

 How to check whether a function is a local user-defined function or from one of the MATLAB toolboxes?

Best Answer

There can be two way:
1) Search the function name in the MathWorks documentation. If it does not appear in the search, it does not belong to any MATLAB toolbox.
2) If a user-defined function has same name as a MATLAB function, then "which" function can be used to locate the source of function name.
>> which funName -all