How to make a gif or video file from multiple *.dat* files using Matlab?

3 views (last 30 days)
Hi everyone.
I have a series of .dat files (i.e. almost 10,000 .dat files). Each .dat file represents an image at a certain time step of a simulation. I have plotted single .dat file with Matlab.
Is there any way to combine all these .dat files into a single "gif" or a "video file" using Matlab??
Thanks in advance!.

Answers (1)

Serhii Tetora
Serhii Tetora on 22 Jul 2020
use
getframe
and
writeVideo
in for-loop

Products

Community Treasure Hunt

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

Start Hunting!