Battery Electric Vehicle Model in Simscape™

August 20, 2026 · View on GitHub

Version 5.0.2

MATLAB MATLAB

View Battery Electric Vehicle Model in Simscape on File Exchange

Cite this project as

MathWorks. Battery Electric Vehicle Model in Simscape (https://github.com/mathworks/Simscape-Battery-Electric-Vehicle-Model). GitHub, 2026.

Introduction

This is a MATLAB® project containing a Battery Electric Vehicle (BEV) model and its components such as motor, high voltage battery, and longitudinal vehicle. This project demonstrates Simscape's modular and multi-fidelity modeling technology. The abstract BEV model is built in a simple and modular fashion, and it can run faster than real-time. It is suitable as a baseline model for drive cycle simulation to estimate vehicle's electrical efficiency and other vehicle-level information.

BEV system model:

Screenshot of the battery electric vehicle model

FTP75 drive cycle simulation result:

Screenshot of the simulation results from BEV basic model with FTP 75 drive cycle

Simple drive pattern simulation result:

Screenshot of the simulation results from BEV basic model with a simple drive pattern

Use BEV Project Navigation App to quickly access some key files and tools.

Screenshot of the BEV project navigation app

Use Vehicle 1D Force App to understand and design the basic performance parameters of a road vehicle.

Screenshot of the longitudinal vehicle force app

Use Abstract Motor Efficiency App to understand and design the motor efficiency parameters.

Screenshot of the abstract motor efficiency app

What's New in 5.0 (August 2026)

  • The project works with R2026a or newer. All MATLAB Live Scripts are plain text *.m files.
  • The utility APIs and apps are available as the Modeling Utility for Simscape (MUS).
  • The updated Abstract Motor Efficiency App is available from the MUS.
  • The updated Vehicle 1D Force App is available from the MUS.
  • The Motor Drive Unit component is simplified. The "Basic" and "BasicThermal" model uses the Motor & Drive (System Level) block from Simscape Electrical.
  • The new Elevation Profile component is available. It is not used with Vehicle 1D component yet.
  • The overall project size is smaller. MATLAB script files no longer come with corresponding Markdown files.

For the past What's New, see the change log.

Tool Requirements

Supported MATLAB Version: R2026a or newer releases

Required: MATLAB, Simulink®, Simscape, Simscape Driveline™, Simscape Electrical™, Powertrain Blockset

Optional: MATLAB Test

How to Use

Open BatteryElectricVehicle.prj in MATLAB, and it will automatically open the project main page BEV_main_script.html. The script contains the description of the model and hyperlinks to models and scripts.

How to Use in MATLAB Online

From the File Exchange site

Visit the File Exchange page of this project.

Then click the "Open in MATLAB Online" button. If your MATLAB Online already has the previous versions of this project, a dialog will appear asking if you want to use the existing one or to get a copy of the new version.

From your local machine

  1. Upload the zip archive of the project to MATLAB drive.

  2. Go to the MATLAB Online site and launch MATLAB Online.

  3. In MATLAB Online, find the zip archive, unzip it, and click the BatteryElectricVehicle.prj file.

Testing and quality assurance

BEV system model and its components are tested using MATLAB Unit Testing framework.

  • Some tests are passing tests that check if code runs or not and do not use the verify* functions. They simply run scripts, functions, classes, or models, and check that they run without errors. Passing tests are designed to finish quickly.

  • This project uses the buildtool with buildfile.m to check code, run tests, measure code coverage, and generate test reports and code coverage reports. See buildfile.m in this project for how the buildtool is configured. Checking code with the buildtool is done by Code Analyzer.

Remote test automation / Continuous integration

The git repository of this project in github.com/mathworks is set up for test automation using GitHub Actions and MATLAB Actions. Unit tests in this project are run automatically when changes are pushed to the repository in github. See the .github/workflows folder for configuration files.

Additional Notes

See Also

MATLAB Central File Exchange

Visit the File Exchange page of this project.

Hybrid Electric Vehicle Model in Simscape

Electric Vehicle Design with Simscape

License

See license.txt.

Copyright 2020-2026 The MathWorks, Inc.