Updating real-time Plots in a new thread
5 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
MatlabUser
il 22 Mag 2016
Risposto: Walter Roberson
il 22 Mag 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!
0 Commenti
Risposta accettata
Walter Roberson
il 22 Mag 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
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Graphics Performance in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!