Problem Saving UIFigures when running in parallel
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Attempts to save UIFigure inside a parfor loop using getframe or exportgraphics dont seem to work. Returning the error that these functions cant be used in nodisplay mode. I rely on a 3rd party function ft_topoplot_er to plot certain topographs on my UIFigure and save the resulting video, but these calls take some time done sequentially, so I wished to parallelise them using parfor yet I'm unable to do so.
0 Commenti
Risposte (1)
Umang Pandey
il 19 Ago 2024
Hi Eli,
You can try using "exportapp" that exports the contents of the figure specified by fig and stores it in the file specified by filename. All graphical content is captured, including UI components.
You can use it in the following manner:
exportapp(fig,filename)
Kindly refer to the following documentation for more information:
Best,
Umang
0 Commenti
Vedere anche
Categorie
Scopri di più su Startup and Shutdown in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!