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:
not getting movie out of this

Subject: not getting movie out of this

From: nman2084

Date: 18 Jul, 2011 00:50:09

Message: 1 of 1

Not getting the movie instead see a image but nothing in the avi file.

mov = avifile('example.avi', 'fps', 30, 'quality', 100, 'compression', 'none') ;
                
% Record the movie
rots = [0:1:360];
for i = 1:100
fmt_txt = 'Rock %s, Volume in cubic feet = %5f';
title(sprintf(fmt_txt, rockName{q}, vol_ft3{q} ));
trisurf(tb{q},pt{q}(:,1),pt{q}(:,2),pt{q}(:,3));
xlabel('X (feet)'); ylabel('Y (feet)'); zlabel('Z (feet)');
axis vis3d;
view(rots(i),30);
M = getframe(gcf);
mov = addframe(mov,M);
end


%%
mov = close(mov);
fclose('all');

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