frames2gif

Converts frames captured by getframes to an animated gif.

Ahora está siguiendo esta publicación

If you want to make an animated GIF from matlab its a pain. But there is a way to do it. With this function you can make your movie in for loop, and then get each frame with getframe. Then send that through frames2gif and you'll get an animated gif out. The function is pretty simple, it's just a bit tricky.

fh = figure();
for i = 1:num_frames
% Draw a frame on the figure.
frames(i) = getframe(fh);
end
frames2gif('my_movie.gif', frames, 'DelayTime', 0, 'LoopCount', Inf); % For a looping gif.

Citar como

Paxon Frady (2026). frames2gif (https://es.mathworks.com/matlabcentral/fileexchange/37529-frames2gif), MATLAB Central File Exchange. Recuperado .

Agradecimientos

Inspiración para: gif

Categorías

Más información sobre Animation en Help Center y MATLAB Answers.

Información general

Compatibilidad con la versión de MATLAB

  • Compatible con cualquier versión

Compatibilidad con las plataformas

  • Windows
  • macOS
  • Linux
Versión Publicado Notas de la versión Action
1.0.0.0