I installed the MATLAB support package for arduino in my MATLAB r2013a today. Now I plugged on my Arduino in my usb port.
And ran the command:
a = arduino()
Error: Undefined function or variable 'arduino'.
When I get:
a = arduino('COM18')
Undefined function 'arduino' for input arguments of type 'char'.
I have checked that this package has been installed. The Screenshot
It is grey. enter image description here
Any help will be appreciated.
Thanks very much
Anupam.
-
Is the directory where the arduino package is installed added to the matlab path?crowie– crowie2016年10月22日 15:49:48 +00:00Commented Oct 22, 2016 at 15:49
-
I a newbie to matlab. Can you please eloborate.I did not change any paths while installing.It was the default one.ANUPAM BISHT– ANUPAM BISHT2016年10月22日 15:50:41 +00:00Commented Oct 22, 2016 at 15:50
-
Navigate to the package install dir in matlab and right click you should see the add to path option there. If the dir is on the Matlab path it wont be greyed outcrowie– crowie2016年10月22日 15:54:32 +00:00Commented Oct 22, 2016 at 15:54
-
actually theres a separate Arduino site on stack exchange you might find better help therecrowie– crowie2016年10月22日 16:00:03 +00:00Commented Oct 22, 2016 at 16:00
-
It is grey.See edited questionANUPAM BISHT– ANUPAM BISHT2016年10月22日 16:01:00 +00:00Commented Oct 22, 2016 at 16:01
1 Answer 1
Arduino support within MATLAB came with Matlab-2014a onwards, you are using R2013a
Arduino support within SIMULINK came with Matlab-2012a onwards
for your release you can only interact via a simulink model