Getting the evaluation progress of the gather command
2 views (last 30 days)
Show older comments
The gather command displays its evaluation progress in the Command Window, but I would like grab that number and display it in a MATLAB App label (requiring it to evaluate in the background, so I would use parfeval). However, I cannot find any way to access the evaluation progress. Is there an undocumented way to access the property? Edit: Here is an example from the Command Window
Evaluating tall expression using the local MATLAB session: - Pass 1 of 2: 46% complete Evaluation 25% complete
The 25% value is what I am trying to get.
Accepted Answer
Walter Roberson
on 28 Nov 2024
You need to turn diary on, and access the diary file while it is still being written. As you will need code to do that, and the code needs to run at the same time as the gather() command, you will need to ran the gather in a background thread or a parallel process (but doing so is likely to interfer with writing to the diary...)
There is no simple way to handle this task.
More Answers (0)
See Also
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!