matlab-subprocess-stdin

Versión 1.1.0.0 (10,4 KB) por scivision
Pipe stdin with Java to run external processes from Matlab
5 descargas
Actualizado 2 oct 2023

This is part of https://github.com/geospace-code/matlab-stdlib

stdlib.sys.subprocess_run()

Matlab stdin pipe

matlab View matlab-subprocess-stdin on File Exchange

Uses Java ProcessBuilder (built into Matlab) to run external processes from Matlab >= R2021a with stdin pipe. Matlab system() does not allow for stdin pipes, but these examples do allow stdin pipes. Using stdin / stdout instead of temporary scratch files can be faster and more robust.

Usage

Simply copy subprocess_run.m into your Matlab project.

cmake -B build
cmake --build build

ctest --test-dir build -V

Notes

The executable must exist as a file. For example, on Windows the inbuilt shell commands that aren't files like "dir" don't work. This is also true in Python subprocess module.

Windows

On Windows, using system() with MPIexec can cause intermittent segfaults that don't occur from Terminal. Using our Java ProcessBuilder-based subprocess_run() can mitigate this issue.

Citar como

scivision (2024). matlab-subprocess-stdin (https://github.com/scivision/matlab-subprocess-stdin/releases/tag/v1.1.0), GitHub. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2023b
Compatible con cualquier versión desde R2021a
Compatibilidad con las plataformas
Windows macOS Linux
Etiquetas Añadir etiquetas

Community Treasure Hunt

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

Start Hunting!
Versión Publicado Notas de la versión
1.1.0.0

See release notes for this release on GitHub: https://github.com/scivision/matlab-subprocess-stdin/releases/tag/v1.1.0

1.0.0

Para consultar o notificar algún problema sobre este complemento de GitHub, visite el repositorio de GitHub.
Para consultar o notificar algún problema sobre este complemento de GitHub, visite el repositorio de GitHub.