Page 1 of 1

Unable to connect to Matlab

PostPosted: Mon Aug 22, 2016 1:40 pm
by Kanen
Hi,

I am using Matlab 2015b and Arduino UNO. I have downloaded the support package. Whenever i run the command:

a = arduino('com3', 'uno')

I get the following error message,

Updating server code on board Uno (COM3). Please wait.
Error using ar2 (line 2)
Undefined variable "ide" or class "ide.internal.getArduinoIDERootDir".

Any idea how do I rectify this?

Thank you.

Re: Unable to connect to Matlab

PostPosted: Mon Aug 22, 2016 4:17 pm
by bengchet
Hi,

You can check if the program can be uploaded using Arduino IDE instead of Matlab to see if Arduino board is working properly.
You can also check if the COM port is correct.

If the problem still exists, you can also try reinstall Arduino package for Matlab.