hi
i wrote a matlab code to blink a led as below
the code
clear
clc
a = arduino('/dev/cu.usbmodem1411');
writeDigitalPin(a, 'D7', 0);
pause(2);
writeDigitalPin(a, 'D7', 1);
but when i run the program i got this message
Attempting connection .............
Warning: Unsuccessful read: A timeout occurred before the Terminator was
reached.
Error using arduino (line 104)
Connection unsuccessful, please make sure that the board is powered on,
running a sketch provided with the package, and connected to the indicated
serial port. You might also try to unplug and re-plug the USB cable before
attempting a reconnection.
Error in nars (line 3)
a = arduino('/dev/cu.usbmodem1411');
please what is the solution for this problem