readLightIntensity
Read intensity of light that reaches color sensor
Add-On Required: This feature requires the MATLAB Support Package for LEGO MINDSTORMS EV3 Hardware add-on.
Description
measures the intensity of the light that reaches the color sensor, and returns it as value
from 0 to 100 (dark to light). The default mode of this function measures ambient light from
the environment. When you set the mode to measure reflected light, the sensor emits light
from a red LED and measures the amount of light reflected by nearby objects.intensity
= readLightIntensity(mycolorsensor
,mode
)