IsFunction:

Path: Common/FileUtils

% Determine whether a file is a function or script.
--------------------------------------------------------------------------
   Form:
   state = IsFunction ( fileName)
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   fileName     (1,:)     File name

   -------
   Outputs
   -------
   state            (1,1)     not a function (0), is a function (1)

--------------------------------------------------------------------------

Children:

Common: FileUtils/FirstLineOfCode

Back to the Common Module page