Main Content


Flush the host buffer


flush(sensorobj) clears the buffers and resets the start time.


This function is available only with the Sensor Fusion and Tracking Toolbox™ and Navigation Toolbox™.

Input Arguments

collapse all

The sensor object with the default or specified properties.

More About

collapse all

Code Generation Using MATLAB Function Block

  • Use flush in a MATLAB® Function block with the Simulink® Support Package for Arduino® Hardware to generate code that can be deployed on Arduino Hardware.

  • flush does not reset the start time.

Introduced in R2019a