From: Charlotte Smith on
Hi,

I hope that someone can help.

I have created a movie showing a 3D plot rotating, which I want to put into Powerpoint 2007. I've written the code, but when I try and run it in Powerpoint I get a weird black flashing image. Moreover, aviread also doesn't yield what I expect it to (nb, the actual rotation looks fine when it runs in the figure window). I've incorperated the Cinepak patch for Vista but still no joy, so any advice would be great!

Below are the relevant bits of code.

Thanks,

Charlotte

[az,el] = view;
rots = [0:10:360];

for i = 1:36
shape=delaunay3(x,y,z);
dim = [x(:) y(:) z(:)];
rotate3d
tetramesh(shape,dim,'FaceAlpha',0.05)
view(rot(i),el);
M(i) = getframe(gcf);
end

movie2avi(M,'loc_ss_coords.avi','compression', 'Cinepak');
From: Charlotte Smith on
My apologies, there was a mistake in my original post...


shape=delaunay3(x,y,z)
dim = [x(:) y(:) z(:)];
rotate3d
tetramesh(shape,dim)

[az,el] = view;
rot = [0:10:360];
for i = 1:36
shape=delaunay3(x,y,z);
dim = [x(:) y(:) z(:)];
rotate3d
tetramesh(shape,dim,'FaceAlpha',0.05)
view(rot(i),el);
M(i) = getframe(gcf);
end
From: Charlotte Smith on
Please accept my apologies. There was an error in the original code.

shape=delaunay3(x,y,z)
dim = [x(:) y(:) z(:)];
rotate3d
tetramesh(shape,dim)

[az,el] = view;
rot = [0:10:360];
for i = 1:36
shape=delaunay3(x,y,z);
dim = [x(:) y(:) z(:)];
rotate3d
tetramesh(shape,dim,'FaceAlpha',0.05)
view(rot(i),el);
M(i) = getframe(gcf);
end