ListParents:

Path: Common/General

--------------------------------------------------------------------------
   List all parents of a function. Search inside given folder.

   Since version 9.
--------------------------------------------------------------------------
   Form:
   [names,dirs] = ListParents( fcn, folder, recursive )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   fcn          (1,:)    String name of file to examine
   folder       (1,:)   Folder name to search in. Can be a single name
                         or cell array of names. Each name must have the
                         full path included.
   recursive    (1,1)   Recursive flag. 
                           1- search in all sub folders
                           0- search only in given folder

   -------
   Outputs
   -------
   parents         {:}   Cell array of parent function names
   lineNums        {:}   Cell array of line no.s in each parent function
                           where child "fcn" is called.
   lines           {:}   Cell array of lines in each parent function where
                           child "fcn" is called.

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

Children:

Common: FileUtils/FindDirectory
Common: FileUtils/FindInFiles
Common: General/DeleteSuffix

Back to the Common Module page