From: Tschackad on
Hi, i want to make a movie file, from the axes in my GUI. There are several rectangles changing there colors.
The Problem is, that in the final avi file, it looks very different from the original.
Here are two links, the first link is a snapshot of the original axes in my GUI.
the second link shows a snapshot from the avi file, it looks very different :( and i dont know why!

Code:

aviobj = avifile('test.avi','compression','None','fps','3');

for i=1:100
for j=1:9
color = round(flow(j,i)* max);
set(handles.h(j),'FaceColor',(handles.cmap(color,:)));
F = getframe;
aviobj = addframe(aviobj,F);
end

end
%close(fig);
aviobj=close(aviobj);



I hope u can help me

Win 7 x64 and Matlab 2010a


http://rapidshare.com/files/409172221/bild1.jpg


http://rapidshare.com/files/409172238/bild2.jpg