arduino with matlab

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

iraqikamal:
. . . .
a = arduino('/dev/cu.usbmodem1411');
. . . .
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. . . .

Where did you get the parameter for the serial connection /dev/. . . . from ?
What sketch have you loaded onto the Arduino to interface with matlab ? Adiosrv.pde ?

the dev/tty.... is the serial port of arduino on mac