Main Content


Flush the host buffer

Since R2020a

Add-On Required: This feature requires the MATLAB Support Package for Arduino Hardware add-on.


flush(gpsdevObj) clears the buffers and resets the SamplesRead and SamplesAvailable.

Input Arguments

collapse all

The GPS sensor object with the default or specified properties.

Version History

Introduced in R2020a