Problem Saving UIFigures when running in parallel

4 visualizzazioni (ultimi 30 giorni)
Eli
Eli il 19 Ago 2024
Risposto: Umang Pandey il 19 Ago 2024
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.

Risposte (1)

Umang Pandey
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

Categorie

Scopri di più su Startup and Shutdown in Help Center e File Exchange

Prodotti


Release

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by