readDistance
Read distance from ultrasonic sensor to object
Add-On Required: This feature requires the MATLAB Support Package for LEGO MINDSTORMS EV3 Hardware add-on.
Description
measures the distance from the ultrasonic sensor to an object, and returns the
measurement in meters.distance = readDistance(mysonicsensor)
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2015a