frames2gif

버전 1.0.0.0 (1.76 KB) 작성자: Paxon Frady
Converts frames captured by getframes to an animated gif.
다운로드 수: 275
업데이트 날짜: 2012/7/17

라이선스 보기

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.

인용 양식

Paxon Frady (2024). frames2gif (https://www.mathworks.com/matlabcentral/fileexchange/37529-frames2gif), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2010a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Animation에 대해 자세히 알아보기
태그 태그 추가
도움

줌: gif

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0