To connect from the MATLAB software to the EV3 Large or Medium Motor (item number 45502 or
45503), use the
motor function to create a
To control the speed and direction of the motor, assign a value to the
Speedproperty of the
motorobject. Input values range from
100(full reverse to full forward). The default value of the
0. You can change this value while the motor is running or stopped.
To measure the total rotation of the motor in degrees, use the
readRotationfunction with the
motorobject. Driving the motor forward increases the value. Driving the motor in reverse decreases the value.