Main Content
readProximity
Read distance from infrared sensor to object
Add-On Required: This feature requires the MATLAB Support Package for LEGO MINDSTORMS EV3 Hardware add-on.
Description
measures
the relative distance from the infrared sensor to a nearby object,
and returns it as a value from proximity
= readProximity(myirsensor
)0
to 100
(near
to far). The maximum range of the sensor is approximately 70 cm (27
inches).
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2015a