image thumbnail

Simscape Vehicle Templates

version (80.3 MB) by Steve Miller
Set of templates for creating custom vehicle models using Simscape for use within Simulink.


Updated 19 May 2022

From GitHub

View license on GitHub

This library contains library blocks and a configurable vehicle model that you can use for a wide range vehicle design tasks. This video shows you some of the capabilities:
For more details, see this page:
Here are some of the tasks you can perform:
  1. Configure the powertrain architecture to model conventional, hybrid, battery electric, and even fuel cell vehicles.
  2. Modify the suspension design by moving hardpoints obtained from a CAD.
  3. Connect custom multi-link suspensions to passive and active hydraulic and pneumatic systems.
  4. Design active chassis controls by integrating controls for anti-lock brakes, stability, and active roll control systems
  5. Develop regenerative braking algorithms by incorporating electrical networks into your vehicle model.
  6. Test your embedded software against a virtual vehicle by converting your Simscape model to C Code and running it on a real time computer, such as Speedgoat.
The templates are designed to be extendable. Create your own variant for any portion of the vehicle model (such as the brakes, suspension, or drivetrain) and you can adjust the libraries so that variant can be selected. It includes the tire modeling software MFeval, another submission on the File Exchange, which inspired this submission.
Please read the file to get started.
Use these hyperlinks to access these materials.

Cite As

Steve Miller (2022). Simscape Vehicle Templates (, GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2022a
Compatible with R2018b to R2022a
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.