STANDALONE is the jCommon module of jLab.

 STANDALONE  Create stand-alone version of an m-file, including dependencies.
 
    FILES=STANDALONE(FILENAME,SOURCEDIR) looks in m-file FILENAME for all
    calls to m-files in directory SOURCEDIR and subdirectories, and returns 
    a list of m-files called by FILENAME, or called by any m-files called 
    by those files, and so forth. Commented-out calls are not included. 
 
    This list of called m-files is returned in the cell array FILES.  The
    first element of FILES is the original m-file FILENAME itself. 
 
    Thus, in order to create a stand-alone version of FILENAME, one needs
    to include all the files in FILES from SOURCEDIR and subdirectories.
    
    Note that SOURCEDIR must be the full pathname of a directory, e.g.
    SOURCEDIR='/Users/lilly/Desktop/Dropbox/Matlab/jlab'.
    
    STANDALONE(FILENAME,SOURCEDIR,TARGETDIR) on Mac or Unix systems moves
    all the files to directory TARGETDIR, which is again the full pathname 
    of a directory.  TARGETDIR is created if does not already exist. 
    
    WARNING: This routine will automatically copy potentially large numbers
    of files by directly accessing the 'cp' command.  If you make an error 
    in the input directories, you could end up with a big mess, or even
    overwrite things you don't want to overwrite.  Please use with caution.
 
    For example, to make standalone version of STANDALONE, one would type
 
         standalone('standalone.m',....,
                '/Users/lilly/Desktop/DropBox/Matlab/jlab',...
                '/Users/lilly/Desktop/DropBox/Matlab/standalone')
 
    which moves STANDALONE and all its dependencies into a directory of the
    same name. 
 
    Usage: files=standalone(filename,sourcedir);
           standalone(filename,sourcedir,targetdir)
    __________________________________________________________________
    This is part of JLAB --- type 'help jlab' for more information
    (C) 2015 J.M. Lilly --- type 'help jlab_license' for details

contents | allhelp | index