I would like to plot series of known coordinates as lines onto a figure of known width and height. Then import a .avi movie of the same height and width, and then combine these two so that the lines overlay the video.
I've been looking around google and stackoverflow, but not sure where to start. Any pointers are greatfully recieved. I am using Matlab R2015a.
Thanks, Chris
Here is a way to do it. The code is commented. I created a dummy movie but if you have one you can skip the first few steps, as indicated. The trick is to use
hold on
anddrawnow
to refresh the display correctly. You can add more lines or modify pretty much anything you want. If something is unclear please ask.Sample output in an animated gif. You can trash the end of the
for
loop used to create it.Hope that helps!