File Exchange

image thumbnail

Microsoft Project Bonsai Simulink Toolbox

version 0.1.5 (16.9 MB) by Microsoft Project Bonsai
Microsoft’s Project Bonsai is a new machine teaching service that enables engineers to add intelligent control to physical systems easily.


Updated 23 Feb 2021

From GitHub

View Version History

View license on GitHub

Project Bonsai enables engineers to add intelligent control to their Simulink models and deploy trained brains (AI agents) on real world physical systems by using machine teaching.
Learn more here:

Engineers can connect their existing simulation models with Project Bonsai by using our Simulink Toolbox. We’ve created example models that are showing how to replace a traditional control system with a trained AI controller.

Simulink model of an inverted pendulum and one of the classic examples for reinforcement learning. Teach a brain to balance a pole attached to frictionless cart.

Project Moab
Project Moab is a small balancing robot useful for demonstrating machine teaching on a physical device for Engineers. You can teach a brain how to balance variety of balls by using the Simulink model as training environment and then deploy the trained brain to the physical device. More information on Moab and availability here:

Follow these steps to experience the service firsthand.

1) Follow the instructions to sign-up for a Bonsai account:
2) Download and install the toolbox
3) Decide which example you would like to use
4) Follow the instructions outlined in the that is part of example
5) Start training a Bonsai brain

Project Bonsai documentation:
Support and feedback:

Cite As

Microsoft Project Bonsai (2021). Microsoft Project Bonsai Simulink Toolbox (, GitHub. Retrieved .

Comments and Ratings (3)

Foss Guru

Tohru Kikawada

Bonsai AI

MATLAB Release Compatibility
Created with R2019b
Compatible with R2019b to R2020a
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!