Autoplay gifs in MATLAB

3 views (last 30 days)
Ben
Ben on 17 Jan 2016
Answered: Jan on 17 Jan 2016
Hello, I'm trying to integrate a gif into a little project of mine but whenever the gif is played, I need to manually press play on the GUI -- is there any way I can make it so the gif automatically plays when the GUI pops up? Thanks in advance.
  1 Comment
Walter Roberson
Walter Roberson on 17 Jan 2016
How are you loading the gif? What code are you using to play it? Are you loading it with different frames along the 4th dimension, and using implay() to play it?

Sign in to comment.

Answers (1)

Jan
Jan on 17 Jan 2016
See http://www.mathworks.com/matlabcentral/answers/263518#answer_205926 for some code to display an animated GIF inside a button.
You can find further examples, if you ask an internet search engine, e.g.: http://undocumentedmatlab.com/blog/displaying-animated-gifs

Categories

Find more on Just for fun in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!