User`s guide
Bringing Image Data into the MATL AB Workspace
Note that the frame returned by getsnapshot is not rem ov ed from the
memory buffer, if frames are stored there, and does not affect the value
of the
FramesAvailable property.
3 Clean up — Always rem ove image acquisition objects from mem ory, and
the variables that re ference them, when you n o longer need them.
delete(vid)
clear vid
6-11