Using matlab to generate video is not so difficult. The basic principle is to plot a number of figures and use them to build a video just like the film. You can use the following codes:
for i=1:n
plot(..); %%plot a figure
axis([....]);%%it's better to plot the figure with same size