Le damos la bienvenida.
Conversaciones es su espacio para conocer a más usuarios, colaborar en la resolución de desafíos y divertirse mientras lo hace.
- ¿Quiere ver las últimas actualizaciones? Siga las publicacionesdestacadas
- ¿Busca técnicas para mejorar sus habilidades en MATLAB o Simulink? Consulte Consejos y trucos.
- ¿Quiere compartir un chiste, juego de palabras o meme de matemáticas? Consulte en la sección de Diversión
- ¿Cree que hay un canal que necesitamos? Háganoslo saber en Ideas
Conversaciones actualizadas



Starting in MATLAB R2022a, use the append option in exportgraphics to create GIF files from animated axes, figures, or other visualizations.
This basic template contains just two steps:
% 1. Create the initial image file gifFile = 'myAnimation.gif'; exportgraphics(obj, gifFile);
% 2. Within a loop, append the gif image for i = 1:20
% % % % % % % % Update the figure/axes % % % % % % % %
exportgraphics(obj, gifFile, Append=true); end
Note, exportgraphics will not capture UI components such as buttons and knobs and requires constant axis limits.
To create animations of images or more elaborate graphics, learn how to use imwrite to create animated GIFs .
Share your MATLAB animated GIFs in the comments below!
See Also
This Community Highlight is attached as a live script

Acerca de Discussions
Get to know your peers while sharing all the tricks you've learned, ideas you've had, or even your latest vacation photos. Discussions is where MATLAB users connect!
Más áreas de la comunidad
Pregunte y responda cuestiones sobre MATLAB y Simulink
Descargue o contribuya al código enviado por los usuarios
Resuelva grupos de problemas, aprenda MATLAB y gane insignias
Contemple MATLAB y Simulink desde dentro
Utilice IA para generar código inicial de MATLAB y obtener respuesta a sus preguntas.