No BSD License  

Highlights from
SplitFunctions

1.0

1.0 | 1 rating Rate this file 1 Download (last 30 days) File Size: 3.44 KB File ID: #8126
image thumbnail

SplitFunctions

by Michael Robbins

 

27 Jul 2005 (Updated 08 Sep 2005)

takes a file with many functions in it and splits those functions up into as many files, entitled wi

| Watch this File

File Information
Description

SPLITFUNCTIONS takes a file with many functions in it and splits those functions up into as many files, entitled with the function names
 
  SPLITFUNCTION(FILENAME) splits the file into parts and puts those parts
    in the same directory as FILENAME
  SPLITFUNCTION(FILENAME,TARGETDIR) splits the file, putting parts in
    TARGETDIR
  SPLITFUNCTION(FILENAME,TARGETDIR,DOWAITBAR) same as above but uses
    waitbar to show progress.
 
  It will turn
  <foo.m starts>
  function a
   ...
  function [a,b] = b
   ...
  function [a,b] = c(d,e)
  ....
  <foo.m ends>
   In to:
  <a.m starts>
  function a
   ...
  <a.m ends>
  <b.m starts>
  function [a,b] = b
   ...
  <b.m ends>
  <c.m starts>
  function [a,b] = c(d,e)
  ....
  <c.m ends>
   SEE ALSO regexp regesprep strrep strfind findstr strmatch
  KEY WORDS regular expressions split file function script procedure
 
 
  It's not fancy, but it works

Acknowledgements

This file inspired F Split.

MATLAB release MATLAB 7.0.1 (R14SP1)
Tags for This File  
Everyone's Tags
directories, expressions, file, files, function, path, procedure, regexp, regular, script, split
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
20 Dec 2006 Stead Kiger

Doesn't work, at least one function is missing.

??? Undefined command/function 'GetSubFunNames'.

Error in ==> SplitFunctions at 76
a(i).name = GetSubFunNames(a(i).fullfun,TRUE);

Updates
08 Sep 2005

?

Contact us