ListFunctions:
--------------------------------------------------------------------------
List the functions that are called from a given file.
All functions located under the matlabroot directory are ignored,
because they are assumed to be built-in MATLAB functions.
If no filename is provided, the file "PIDMIMO" is used as an example.
--------------------------------------------------------------------------
Form:
[names,dirs] = ListFunctions( filename, level, noMatlabFuns, method )
--------------------------------------------------------------------------
------
Inputs
------
filname (:) String name of file to examine
level (1) How many levels to search (-1 fully recursive)
noMatlabFuns (1) Flag - exclude MATLAB functions (1) or not (0)
method (1) Use "profile" or "depfun". Default is "depfun".
-------
Outputs
-------
names {:} Cell array of function names
dirs {:} Cell array of corresponding directory names
--------------------------------------------------------------------------