https://de.mathworks.com/help/imaq/imaqdevice.flushdata.html
flushdata - Remove data from memory buffer used to store acquired image frames - MATLAB
This MATLAB function removes the data from the memory buffer associated with obj used to store acquired image frames