0

I am very new at Matlab and I just would like to know if Matlab allow us to upload swf files. If not, i know that it is possible to upload a movie (AVI for example). Could I upload a movie and move it to different points of the screen at a certain speed and motion while it's playing? Do I need an specific toolbox for it?

Thank yoooou !!!

Flowers
  • 59
  • 1
  • 2
  • 12
  • http://www.mathworks.com/matlabcentral/newsreader/view_thread/277814 – slayton Jun 20 '12 at 03:46
  • http://www.mathworks.com/matlabcentral/fileexchange/15794-video2flv/content/flvplayer.swf – slayton Jun 20 '12 at 03:46
  • well, I need to program a picture (jpg) that moves across the screen at a certain speed. And do the same with a movie (AVI). So i just want to know if it's possible to do that with Matlab. – Flowers Jun 20 '12 at 08:08

1 Answers1

0

The only way I can think of doing this is to display the image/movie in an axes object and then move the axes within the containing figure.

f = figure();
a = axes('Units', 'Normalized', 'Position', [0 .5 .1 .1]);

while true
  pos = get(a,'Position');
  pos(1) = mod(pos(1) + .01, 1);
  set(a, 'Position', pos);
  pause(.01); 
  drawnow; 
end

To get this to work with a movie you'd need to draw the movie within the axes

slayton
  • 20,123
  • 10
  • 60
  • 89
  • 1
    ok. thanks. i'll probably give it a go with something easy first and then go for the movie... – Flowers Jun 20 '12 at 22:31