I bought an arduino engineering kit. I connected a DC motor to the nano carrier, the battery to the nano carrier, connected the nano to the computer just as they said. Then I executed the following commands in matlab:
a = arduino; carrier = motorCarrier(a); dcm = dcmotor(carrier, 'M1'); start(dcm); dcm.Speed = 0.5.
The commands just executed wtihout throwing any error, but the motor didn't rotate. I decided to check the motor so I connected it to the 3.7V battery and it worked well. Any help would be appreciated.