Code covered by the BSD License  

Highlights from
GIF Player

3.75

3.8 | 4 ratings Rate this file 20 Downloads (last 30 days) File Size: 92.74 KB File ID: #12673
image thumbnail

GIF Player

by Vihang Patil

 

17 Oct 2006 (Updated 28 May 2009)

This function will display the animated GIF's in the figure window

| Watch this File

File Information
Description

This is a GIF player, which will play your animated GIF's in the figure or gui window.

Demo : gifplayer; %plays the animated crystal.gif file provided with this submission

Usage:
ex: gifplayer('animated.gif',0.1); %delay is in seconds

There could be more enhancements to this program which could be added on, so comments most welcome from the readers.

MATLAB release MATLAB 7.0.4 (R14SP2)
Other requirements 1.Tested in R14SP2 for windows XP, have not tested on other platforms. 2.Users having Image Processing ToolBox will have better results.
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (7)
18 Oct 2006 Jos x@y.z

That you created this in a hurry, does not mean that you have to post it directly. The FEX can wait ...

The use of appdata should be avoided.
A delay of 0.2 causes an update every 0.5 seconds ???

18 Oct 2006 Vihang Patil

Thanks Jos
Well it was a typo error that I didnot update the comments part. So the delay of 0.2 sec causes an update after 0.2 sec only. Thank you for letting me know that.
Well regarding using appdata, I am not quite sure how to pass variables in the other function with the "@" sign , so had to use this alternative. If you could modify it and let me know later at your convenience, it would rather help my knowledge in passing variables to a function

14 Dec 2007 Rahul Gandhi

This is what I wanted

14 Dec 2007 John Hopkins

Nice Utility.

30 Jan 2009 Troy

I was going to use this to display a loading icon, which works fine if I put a break point in the code. The problem is that it freezes when the rest of the code executes. Is there a way to make it work in parallel?

Thanks

03 Nov 2010 Daniel

Works alright. I can't put it in a GUI created with GUIDE though because it overwrites the GUI data handles structure. Can you help me out with an easy way around this?

04 Nov 2010 Daniel

Hi, got it to work in my GUIDE GUI by making it add to the existing handles structure rather than overwriting it. Maybe this should be the default behavior.

Please login to add a comment or rating.
Updates
18 Oct 2006

Comments altered according the user review

19 Oct 2006

Revision:
Date: 19th Oct 2006
Multiple Gif's can be called upon which can be opened in new figure window.
ex: figure;gifplayer;
ex: figure;gifplayer('abcd.gif',0.1); and so on.

21 Jan 2008

1.Used handles property effectively 2.Can be useful for users not having image processing toolbox

28 May 2009

Improved Function handling

Tag Activity for this File
Tag Applied By Date/Time
gif Vihang Patil 22 Oct 2008 08:44:04
player Vihang Patil 22 Oct 2008 08:44:04
images Vihang Patil 22 Oct 2008 08:44:04
animated Vihang Patil 22 Oct 2008 08:44:04
animation Cristina McIntire 07 Nov 2008 12:53:51

Contact us at files@mathworks.com