Matlab Daemon

A Bash script & Mex program which allows for #!-style scripting against a background Matlab session.

Vous suivez désormais cette soumission

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.

Citation pour cette source

Joshua Dillon (2026). Matlab Daemon (https://fr.mathworks.com/matlabcentral/fileexchange/30120-matlab-daemon), MATLAB Central File Exchange. Extrait(e) le .

Informations générales

Compatibilité avec les versions de MATLAB

  • Compatible avec toutes les versions

Plateformes compatibles

  • Windows
  • macOS
  • Linux
Version Publié le Notes de version Action
1.1.0.0

Updated documentation.

1.0.0.0