Problem Saving UIFigures when running in parallel
4 views (last 30 days)
Show older comments
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 Comments
Answers (1)
Umang Pandey
on 19 Aug 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 Comments
See Also
Categories
Find more on Startup and Shutdown 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!