Hi there! This is the documentation for the “Lego Mindstorms EV3” MATLAB Toolbox, developed by RWTH Aachen. For an introduction about this toolbox, installation guides and examples, take a look at our repository.
Here is a minimal example to get you started.
% This example expects a motor at port A and a (random) sensor at port 1
b = EV3();
b.connect('usb');
ma = b.motorA;
ma.setProperties('power', 50, 'limitValue', 720);
ma.start();
% fun
ma.waitFor();
disp(b.sensor1.value);
b.beep();
b.delete();