MATLAB Arduino connection

Hi,
I prepared the code, and received the following error. My status of the board will not be displayed as it should be. I receive “Failed to open sketch: C:\Users\BAHAR”

clear a
a=arduino(‘COM3’,‘Mega2560’);
a.pinMode(13,‘OUTPUT’);
a.pinMode(30,‘OUTPUT’);

tic
while (toc<10)
a.digitalWrite(30,1);
a.writePWMVoltage(a,‘D13’,5);
a.writePWMDutyCycle(a,‘D13’,0.33);
end

Arduino Mega 2560 detected.
This device is ready for use with MATLAB Support Package for Arduino Hardware. Get started with examples and other documentation.
This device is ready for use with Simulink Support Package for Arduino Hardware. Get started with examples and other documentation.

v1
Updating server code on board Mega2560 (COM3). Please wait (might take a few minutes).
Error using v1 (line 2)
Cannot program board Mega2560 (COM3). Please make sure the board is supported and the port and board type are correct. For
more information, see Arduino Hardware Troubleshooting.

Go ask on the Matlab forums.

Most people here don't use Matlab.

.