readDistance
Distance to object in front of ultrasonic sensor
Description
measures the distance from the ultrasonic sensor to an object and returns the measured distance in meters. The function uses 344 m/s for the velocity of sound.distance
= readDistance (ultrasonicObj
)
Examples
Input Arguments
Output Arguments
See Also
Introduced in R2019a