How to Control an Arduino from MATLAB
I found a quick tutorial on how to Interface an Arduino with MATLAB.
The tutorial shows how to blink an LED from MATLAB.

Here's what the code looks like:
% create an Arduino object
a = arduino('com3', 'uno');
% start the loop to blink led for 10 seconds
for i = 1:10
writeDigitalPin(a, 'D11', 1);
pause(0.5);
writeDigitalPin(a, 'D11', 0);
pause(0.5);
end
% end communication with Arduino clear a
5 Comments
Time DescendingLinks to more advanced stuff would be great :)
Sign in to participate
