The tutorial video linked here uses the Arduino Support Package for MatLAB, not the same as the SIMULINK support package. If the line of code --- a = arduino('comPort','UNO') --- is ran in the Command Window or a script you will be prompted to download the support package. When installing this package you will be prompted to select the download for example codes, do so, as they are useful.
http://www.mathworks.com/hardware-support/arduino-matlab.html
MatLAB lacks the ability to write to an analog pin. The Arduino IDE will be employed to use this feature of the board. |
NOTE: You may also type in just 'arduino' into the command window to connect to the arduino if the arduino is genuine.
ReplyDelete