Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
need help with converting fig to movie

Subject: need help with converting fig to movie

From: nman2084

Date: 16 May, 2011 19:29:03

Message: 1 of 2

I am trying to convert a group of matlab figures to movie, right now this just opens figure with nothing (grey), and movie is captured with grey windows.

clear M ;


for i=1:5
    s = int2str(i);
    fileName = strcat({'diag'},{s},{'.fig'});
    fileName = cell2mat(fileName);
    fopen(fileName) ;
    h = gcf;
    M(i) = getframe(h);
    pause(2)
end

movie2avi(M, 'demo.avi', 'compression', 'none', 'fps', 1, 'quality', 100);

Subject: need help with converting fig to movie

From: ImageAnalyst

Date: 16 May, 2011 19:52:02

Message: 2 of 2

Did you see the FAQ:
http://matlab.wikia.com/wiki/FAQ#How_can_I_create_a_movie_from_my_MATLAB_figures.3F

Or else search this newsgroup for "rhinos.avi" where I give some more
extensive demo code.

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us