SplitFunctions

버전 1.0.0.0 (1.38 KB) 작성자: Michael Robbins
takes a file with many functions in it and splits those functions up into as many files, entitled wi
다운로드 수: 2K
업데이트 날짜: 2005/9/8

라이선스 없음

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

인용 양식

Michael Robbins (2024). SplitFunctions (https://www.mathworks.com/matlabcentral/fileexchange/8126-splitfunctions), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R14SP1
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Environment and Settings에 대해 자세히 알아보기
도움

줌: FSplit

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0

?