Updating real-time Plots in a new thread

5 visualizaciones (últimos 30 días)
MatlabUser
MatlabUser el 22 de Mayo de 2016
Respondida: Walter Roberson el 22 de Mayo de 2016
Hi All,
I have Matlab 2015a (SP1) with Parallel Computing Toolbox (v6.6). I would like to update the a real-time plot (using drawnow function) in a new thread to free-up the main EDT thread. I have been trying to implement this using the 'parfeval' function (as I thought it can deal with graphical objects unlike hte 'batch' functionality) but with no success.
Is there anyway to update graphical objects (such as plots) in a new thread.
Many thanks for the help!

Respuesta aceptada

Walter Roberson
Walter Roberson el 22 de Mayo de 2016
Is there anyway to update graphical objects (such as plots) in a new thread.
No. The workers need to communicate back to the main thread and have it do the graphics. An example is at http://www.mathworks.com/matlabcentral/fileexchange/24594-parfor-progress-monitor

Más respuestas (0)

Categorías

Más información sobre Graphics Performance 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