How to subplot and save movies in MATLAB?

I've made two movies in MATLAB and I am attempting to get them both in the same figure and save the result as an AVI file.
I understand how to use the subplot() function, but for some reason it just won't display properly. My attempt so far is this;
f(count) = im2frame(uint8(newpic));
g(count) = im2frame(uint8(newpic));
subplot(1,2,1),movie(f,10,3); axis off; title('Damaged Image','fontweight','bold');
subplot(1,2,2),movie(g,10,3); axis off; title('Recreated Image','fontweight','bold');
movie2avi(f,'mov.avi','compression','None');
movie2avi(g,'mov.avi','compression','None');
But the figure generated isn't displaying properly, and I don't actually know how to save that figure as an AVI, I only know how to save the individual files.
Any help would be greatly appreciated, thanks in advance!

Asked:

on 11 May 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!