How to create a video of fmincon results for each iteration?
4 次查看(过去 30 天)
显示 更早的评论
Hi,
I have used fmincon to find solution for an optimization problem. I want to create a video plot showning how a plot of a function being calculated everytime fmincon changes the optimization variables values. Any idea how? See the attached pictures for illustration.
Thanks,
Ahmed
0 个评论
回答(1 个)
J. Alex Lee
2019-12-7
Since it looks like you already are able to plot, is the question simply how to create a video from series of plots?
If so, a simple way to do eveyrthing within matlab is to use getframe() and videoWriter
https://www.mathworks.com/help/matlab/ref/getframe.html?searchHighlight=getframe&s_tid=doc_srchtitle
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!