Main Content
readEchoTime
Read echo time of ultrasound waves
Add-On Required: This feature requires the MATLAB Support Package for Arduino Hardware add-on.
Description
measures the time taken by the ultrasound waves reflected from the object to reach
the sensor, represented by the connection object time
= readEchoTime(ultrasonicObj
)ultrasonicObj
.
The distance to the object is computed from the time
measured,
using the equation distance = (time x speedOfSound)/2
.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2019a