https://es.mathworks.com/help/nav/ref/gpsdev.flush.html
flush - Flush all GPS data accumulated in the buffers and reset properties - MATLAB
This MATLAB function clears the buffers and resets the values of SamplesRead and SamplesAvailable properties.
all gpsin the