How can I capture video from a plotting function?

1 次查看(过去 30 天)
I am running a multi objective genetic algorithm using the command:
[vals,fvals]=gamultiobj(@MultiObj,4,[],[],[],[],lb,ub,Options)
where @MultiObj is my function, using 4 variables, lb=lower bound, ub=upper bound, and Options are specified as:
Options=gaoptimset('PlotFcns',@gaplotpareto);
This works great and produces a nice plot that updates with each generation, for my problem this is around 50 times. Is there any way to record this plot as it updates? I have no idea what is going on inside gaplotpareto. I was thinking F = getframe(h) might work, but I don't know how to update the frame or get the handle.
Thank you in advance for your help!
Richard

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by