Skip to content
Snippets Groups Projects
Commit 8fbea7c5 authored by Tim Stadtmann's avatar Tim Stadtmann
Browse files

Add a global example to doc

parent 36d99221
No related branches found
No related tags found
No related merge requests found
======== ========
Examples Examples
======== ========
.. code-block:: matlab
% 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();
...@@ -19,7 +19,6 @@ To get started, take a look at the :doc:`installation instructions <readme>` and ...@@ -19,7 +19,6 @@ To get started, take a look at the :doc:`installation instructions <readme>` and
This toolbox is being developed at the RWTH Aachen, Germany, as part of the students' lab This toolbox is being developed at the RWTH Aachen, Germany, as part of the students' lab
'MATLAB meets Mindstorms'. It is the follow-up of the `MATLAB NXT Toolbox`_. 'MATLAB meets Mindstorms'. It is the follow-up of the `MATLAB NXT Toolbox`_.
##image##
.. _MATLAB NXT Toolbox: http://www.mindstorms.rwth-aachen.de/trac/ .. _MATLAB NXT Toolbox: http://www.mindstorms.rwth-aachen.de/trac/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment