Code covered by the BSD License  

Highlights from
FSplit

Be the first to rate this file! 2 Downloads (last 30 days) File Size: 3.2 KB File ID: #13467
image thumbnail

FSplit

by Stead Kiger

 

21 Dec 2006 (Updated 22 Jul 2009)

FSPLIT splits a multifunction m-file into many single function m-files

| Watch this File

File Information
Description

FSPLIT splits a multifunction m-file into many single function m-files.
 
FSPLIT(SOURCEFILE) reads the multifunction m-file SOURCEFILE and writes a new m-file for each function in SOURCEFILE into the current directory, splitting the SOURCEFILE by functions. If no path is specified for the source file, it is read from the current directory or from the Matlab path, in that order.
 
FSPLIT(SOURCEFILE, TARGETDIR) writes the individual functions in SOURCEFILE into the directory TARGETDIR.
  
 
    Example:
 
        >> FSplit('ver.m','.\test')
        FSplit reading file C:\MATLAB\toolbox\matlab\general\ver.m
        
        Writing function ver.m ... finished
        Writing function fixarg.m ... finished
        Writing function LocParseContentsFile.m ... finished
        Writing function LocDisplayMatlabInformation.m ... finished
        Writing function sort_toolbox_list.m ... finished
        Writing function display_toolbox_list.m ... finished
        Writing function remove_unwanted_entries.m ... finished
        Writing function disp_single_toolbox.m ... finished
        Writing function LocCleanDate.m ... finished
        
        FSplit finished.

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
SplitFunctions

MATLAB release MATLAB 7.0.4 (R14SP2)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Updates
22 Jul 2009

Under threat of file removal, changed license from GPL to BSD.

Tag Activity for this File
Tag Applied By Date/Time
development environment Stead Kiger 22 Oct 2008 08:53:43
splits Stead Kiger 22 Oct 2008 08:53:44
multifunction Stead Kiger 22 Oct 2008 08:53:44
split function Stead Kiger 22 Oct 2008 08:53:44
utilities Stead Kiger 22 Oct 2008 08:53:44
development Stead Kiger 22 Oct 2008 08:53:44

Contact us at files@mathworks.com