File Exchange

image thumbnail

RWTH - Mindstorms NXT Toolbox

version (8.38 KB) by Alexander Behrens
Toolbox for controlling LEGO® MINDSTORMS® NXT robots via a Bluetooth or USB connection.


Updated 19 Oct 2011

View Version History

View License

The RWTH - Mindstorms NXT Toolbox provides several MATLAB functions for controlling LEGO® MINDSTORMS® NXT robots, including NXT system features, sensors, and motors via a Bluetooth or USB connection. Also some helper functions for an effective programming are implemented.

The development of the RWTH - Mindstorms NXT Toolbox was motivated by a RWTH Aachen University student project - MATLAB meets LEGO Mindstorms - for electrical engineering students and therefore designed mainly for education purposes.
In winter 2008 over 380 students and 80 supervisors participated in this project and developed and programmed 200 robots based on the RWTH - Mindstorms NXT Toolbox for MATLAB.

Because of license issues the sources of the RWTH - Mindstorms NXT Toolbox (GPL) are hosted at project page

Cite As

Alexander Behrens (2021). RWTH - Mindstorms NXT Toolbox (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (5)

Alex Bruski

As a coach for FLL (First Lego League), all methods of programming Legos with more accuracy and ease is of great interest. Once I learn the ins and outs of using Mat Lab with Lego, I will then be able to help my students to learn that there are many ways to accomplish the same end results. Some of those methods are just more convenient than others. Following the path of least resistance is often the most natural path toward betterment and fulfillment, better known as success.

Leo Kay

Thank you for this, amazing work, i wish i can give more than 5 stars, i have been working with this code for the past 1.5 year and its truly outstanding :D
Thank you again !


Excellent submission Mohammad. Here's a link to download free MATLAB and Simulink LEGO MINDSTORMS NXT code -

song ss

Mohammad Omer

I dont know what to say!! THANKS for saving the time , this job is the best

MATLAB Release Compatibility
Created with R2008b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!