redirect system() output on the fly to estimate progress of external cmd

5 visualizaciones (últimos 30 días)
Is there a 'non-messy' (or OK, any?) way to catch the [status, output] = system() on the fly?
Basically I have to run an external tool in C++ (at the moment, modifying it is not an option) to create some file.
In the terminal, progress is returned on the fly. Obviously, in MATLAB (2014b, OS X 10.10.5) the output is only available after completion.
The idea is simply to catch it on the fly such that information and progress can be shown in a uitable/uiwhatever.
(I'm sorry if this was already asked; I searched for this issue but didn't find an answer yet...)

Respuesta aceptada

Walter Roberson
Walter Roberson el 9 de Dic. de 2015
There is no non-messy way.
You will need to do a process open. You can use popen() from the File Exchange

Más respuestas (0)

Categorías

Más información sobre Data Import and Analysis en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by