optimization optimplot capture frame
24 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Rastislav Uhrin
am 7 Okt. 2025 um 8:51
Bearbeitet: Matt J
am 7 Okt. 2025 um 22:17
Hi,
I would like to create movie out of "optimplot" of fmincon function. For that I need to get hadle to this optimplot figure in order to capture frame.
% Capture frame for movie
frame = getframe(fighndl);
How to get this handle? Is there another solution to create movie out of optimplot?
0 Kommentare
Akzeptierte Antwort
Matt J
am 7 Okt. 2025 um 20:15
Bearbeitet: Matt J
am 7 Okt. 2025 um 22:17
optimplot does not plot in a figure container of the type that you can get a handle to.
Prior to R2025, you could probably have worked around this by writing a second PlotFcn that performs a screen capture, with any of the Java-based screen capture tools on the File Exchange,
Since R2025 does not use Java, you will instead probably have to render the plots with your own PlotFcn instead of optimplot.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Graphics Performance finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!