Version 5.0.2
Cite this project as
MathWorks. Battery Electric Vehicle Model in Simscape (https://github.com/mathworks/Simscape-Battery-Electric-Vehicle-Model). GitHub, 2026.
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:
FTP75 drive cycle simulation result:
Simple drive pattern simulation result:
Use BEV Project Navigation App to quickly access some key files and tools.
Use Vehicle 1D Force App to understand and design the basic performance parameters of a road vehicle.
Use Abstract Motor Efficiency App to understand and design the motor efficiency parameters.
- The project works with R2026a or newer. All MATLAB Live Scripts are plain text
*.mfiles. - 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.
Supported MATLAB Version: R2026a or newer releases
Required: MATLAB, Simulink®, Simscape, Simscape Driveline™, Simscape Electrical™, Powertrain Blockset
Optional: MATLAB Test
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.
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.
-
Upload the zip archive of the project to MATLAB drive.
-
Go to the MATLAB Online site and launch MATLAB Online.
-
In MATLAB Online, find the zip archive, unzip it, and click the
BatteryElectricVehicle.prjfile.
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.mto check code, run tests, measure code coverage, and generate test reports and code coverage reports. Seebuildfile.min this project for how the buildtool is configured. Checking code with the buildtool is done by Code Analyzer.
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.
Visit the File Exchange page of this project.
Hybrid Electric Vehicle Model in Simscape
- Provides an abstract power-split HEV model. The level of abstraction is similar to this project.
- https://www.mathworks.com/matlabcentral/fileexchange/92820
Electric Vehicle Design with Simscape
- Provides BEV design workflows using detailed models for detailed analysis.
- https://www.mathworks.com/matlabcentral/fileexchange/124795
See license.txt.
Copyright 2020-2026 The MathWorks, Inc.





