I have been following a tutorial on you tube on how to get your Arduino board recognized within MatLab. First I created 2 GUI buttons "ON" and "OFF" in order to switch pin 13's LED on and off. When I try and compile/run the .m file called "buttons" I keep getting all these errors:Undefined function 'arduino' for input arguments of type 'char'.
Error in buttons>buttons_OpeningFcn (line 66)
a = arduino('COM3');
Error in gui_mainfcn (line 221)
feval(gui_State.gui_OpeningFcn, gui_hFigure, ,
Error in buttons (line 42)
I am working with an Arduino UNO R3, Windows 7 and MatLab 2012a. I have tried putting everything within the MATLAB path within "documents" but still the same errors. I also looked under ports and seen that my UNO is on "COM3". But it says the function "arduino" is undefined.
The link for the video is here:
Any help would be much appreciated.