MATLAB Answers


Is LEGO MINDSTORMS NXT supported in previous releases?

I would like to develop algorithms to run on LEGO MINDSTORMS NXT using Simulink and I would like to know if it is supported in previous releases.

1 Answer

Answer by MathWorks Support Team on 7 Aug 2017
Edited by MathWorks Support Team on 7 Aug 2017
 Accepted Answer

LEGO MINDSTORMS NXT is supported in various MATLAB releases, including Student Version. It is recommended to upgrade to the latest release if at all possible, as that will generally be the most capable offering from MathWorks. The support packages currently available are as follows: 

Support from Simulink

  • Simulink provides built-in support for LEGO MINDSTORMS NXT.
  • Works with MATLAB R2014a to R2016b.
  • Previous releases: Built-in support from Simulink for LEGO MINDSTORMS NXT in releases R2012a through R2013b is discontinued as of March 2016.
  • The support package installer file and additional information are available at the following File Exchange entry:

Note: The Simulink Support Package for LEGO MINDSTORMS NXT Hardware relies on third party software, which recently has been sporadically unavailable. If the download issue persists, please come back in a few days while we work with the vendor to provide the solution.

LEGO MINDSTORMS NXT hardware was retired by LEGO in 2013. We recommend to migrate to LEGO MINDSTORMS EV3 hardware and use LEGO MINDSTORMS EV3 Support from Simulink instead, which is available for download for Windows and Linux since R2014a, and for all platforms since R2016a:​

Support from MATLAB

  • Connection to LEGO MINDSTORMS NXT can be achieved from MATLAB (works with releases R2008b - current) and from Simulink Student Version (works with releases R2009a - current).
  • The hardware catalog page with detailed information about support from MATLAB is available at:

Support from Embedded Coder

  • A demonstration that uses Embedded Coder to program a LEGO MINDSTORM NXT robot is available at the following MATLAB Central File Exchange entry:


  • Works with R2006a - R2012a (32bit/64bit)


Log in to comment.

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today