Prev: Compilation error with C++ mex file
Next: Help with
From: Charlotte Smith on 24 Mar 2010 05:57 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 24 Mar 2010 06:04 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 24 Mar 2010 06:07 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
|
Pages: 1 Prev: Compilation error with C++ mex file Next: Help with |