编者按:这个文件被选为MATLAB中心本周精选
这是一个如何在MATLAB®中创建动画和gif动画的例子。在这个例子中,我们将动画双摆的运动。我们用“ode45”解常微分方程。
在MATLAB文档中阅读“getframe”和“imwrite”函数。
更多的例子,去MATLAB Plot Gallery -//www.tatmou.com/discovery/gallery.html
引用作为
MathWorks Plot Gallery团队(2021年)。MATLAB绘图画廊-动画(//www.tatmou.com/matlabcentral/fileexchange/35251-matlab-plot-gallery-animation), MATLAB中央文件交换。检索.