frames2gif
バージョン 1.0.0.0 (1.76 KB) 作成者:
Paxon Frady
Converts frames captured by getframes to an animated gif.
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 (2026). frames2gif (https://jp.mathworks.com/matlabcentral/fileexchange/37529-frames2gif), MATLAB Central File Exchange. に取得済み.
MATLAB リリースの互換性
作成:
R2010a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linuxカテゴリ
- MATLAB > Graphics > 2-D and 3-D Plots > Animation >
Help Center および MATLAB Answers で Animation についてさらに検索
タグ
謝辞
ヒントを与えたファイル: gif
| バージョン | 公開済み | リリース ノート | |
|---|---|---|---|
| 1.0.0.0 |
