How to make gifs automatically repeat

Hello,
I am looking for a way to make the gif that I am downloading not only automatically play once it is has been loaded but also run at 5 FPS and automatically repeat. I do not want my player to have to use any keyboard commands so it will have to be entirely automated. The code below has been very helpful.
[A,map]=imread('giphy.gif','frames','all');
mov=immovie(A,map);
implay(mov, 1,)
Currently using the help function I have learnt to use implay(I) and implay(..., FPS) but these do not work together nor do they help with my automatic repeat requirement.
Any help would be appreciated.

Answers (1)

You could modify videofig File Exchange contribution if it does not already support repeating.

1 Comment

How would I go about that for a gif I've found off the internet? the plan is to show memes from the internet as joke error messages for incorrect responses.

Sign in to comment.

Categories

Asked:

on 28 Nov 2016

Commented:

on 28 Nov 2016

Community Treasure Hunt

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

Start Hunting!