How to create a video of fmincon results for each iteration?

조회 수: 4 (최근 30일)
Ahmed Ghamdi
Ahmed Ghamdi 2019년 12월 7일
답변: J. Alex Lee 2019년 12월 7일
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

답변 (1개)

J. Alex Lee
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

카테고리

Help CenterFile 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!

Translated by