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

4 次查看(过去 30 天)
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...)

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Data Import and Analysis 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by