User`s guide
Managing Memory Usage
6-41
To verify that the object deleted the frames, view the value of the FramesAvailable
property.
vid.FramesAvailable
ans =
10
5
Empty the entire memory buffer — Calling flushdata without specifying the
mode deletes all the frames stored in memory.
flushdata(vid);
To verify that the object deleted the frames, view the value of the FramesAvailable
property.
vid.FramesAvailable
ans =
0
6
Clean up — Always remove image acquisition objects from memory, and the
variables that reference them, when you no longer need them.
delete(vid)
clear vid