compileAndRun

버전 1.0.0.0 (1.65 KB) 작성자: Matt Dunham
Easily compile and run a matlab function for significant speed improvements.
다운로드 수: 1.6K
업데이트 날짜: 2008/10/16

라이선스 보기

Newer version of Matlab let you compile Matlab code using emlmex, significantly improving the speed of certain functions, particularly those involving loops. However, the size and type of the inputs have to be fixed at compile time, limiting its use.

This function lets you compile functions dynamically at run time so that the size and types of the inputs don't have to be known before hand.

You simply call this function like you would feval:

[a,b,c] = runAndCompile('myfunc',X,Y,Z)

Note, however, that Matlab's emlmex only supports a subset of the Matlab language. This will not work with all functions and it might take some work to make functions eml compliant. See Matlab's emlmex help for details. A few minutes work, however, can save you hours or days of computer time depending on the size of the problem.

인용 양식

Matt Dunham (2024). compileAndRun (https://www.mathworks.com/matlabcentral/fileexchange/21756-compileandrun), MATLAB Central File Exchange. 검색됨 .

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

Community Treasure Hunt

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

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