Hi Michela,
- You can save the moving plot as a video using the 'getframe' function. In the following example I store each frame in an array of structures:
n = 50;
XY = 10 * rand(2,n) - 5;
for i=1:n
plot(XY(1,i),XY(2,i),'or','MarkerSize',5,'MarkerFaceColor','r')
axis([-5 5 -5 5])
a(i)=getframe(gcf);
pause(.1)
end
- You can display the video in the same Figure window as the plot. You can refer the following example: http://www.mathworks.com/help/vision/examples/video-display-in-a-custom-user-interface.html
- Please refer the following thread to understand how to plot over a video:
-Shashank