Matlab Daemon
版本 1.1.0.0 (8.0 KB) 作者:
Joshua Dillon
A Bash script & Mex program which allows for #!-style scripting against a background Matlab session.
Unfortunately Mathworks has not designed Matlab to behave like the typical Unix interpreter, i.e., there is no #! ("shebang") support similar to Bash, Perl, or Python. This submission demonstrates how to set this up using only about 20 lines of bash (and a small mex program written in C).
To minimize execution time of each #! script, the provided Bash script establishes a background session of Matlab and re-uses this session as needed.
Please see "readme.html" for installation and comments.
引用格式
Joshua Dillon (2025). Matlab Daemon (https://ww2.mathworks.cn/matlabcentral/fileexchange/30120-matlab-daemon), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R2010b
兼容任何版本
平台兼容性
Windows macOS Linux类别
- MATLAB > External Language Interfaces > Python with MATLAB > Call Python from MATLAB >
- MATLAB > External Language Interfaces > C with MATLAB > Write C Functions Callable from MATLAB (MEX Files) >
在 Help Center 和 MATLAB Answers 中查找有关 Call Python from MATLAB 的更多信息
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!