Thanks a lot for your help. I was still having the same problem after installing it as an administrator so I looked at the MATLAB Arduino help and it appears that they have changed the coding syntax. For example: to specify output pins then instead of a.pinMode(22,'output') then it is a.configureDigitalPin(22,'output') or turning on the power instead of a.digitalWrite(22,1) then it is a.writeDigitalPin(22,1). I'm not sure on what version of MTALB the change took place but this fixed the problem.
Matlab recognizes arduino but not other code.
6 views (last 30 days)
Andrew Miller on 17 Oct 2014
I'm pretty new to using matlab/arduino together so this is probably a simple problem. I installed the arduino add-on from mathworks and have gotten matlab to recognize my arduino uno using:
a = arduino('COM3');
but none of the arduino commands work that I have tried:
and all of them bring up the same error message:
' _No appropriate method, property, or field pinMode for class arduino._'
I'm not sure why they don't work.