Battery Electric Vehicle Model in Simscape
Version 4.0.1 (9.92 MB) by
Isaac Ito
A Battery Electric Vehicle (BEV) model in Simscape for longitudinal powertrain analysis
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 Download button provides the latest version for MATLAB R2024b or newer.
To download a previous version zip archive, visit the GitHub releases page:
FTP-75 drive cycle simulation
Use Vehicle1D Performance Design App to design the basic performance parameters of a road vehicle.
Use Motor Drive Unit Efficiency App for System Thermal Model to understand how the model parameters are affecting the motor efficiency.
The 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.
This project also contains the model of a detailed permanent magnet synchronous motor and controller. It runs slower than real-time, but it captures the detailed behaviors of the AC motor drive unit and can estimate the electrical efficiency at the unit level.
A Live Script for a detailed motor drive unit demonstrates how to obtain the electrical efficiency from the detailed motor drive unit and use the result as the block parameter of the abstract motor drive block in the BEV model.
Main Live Script for BEV model
This script shows an example workflow to programmatically open model, run simulation, collect simulation data, visualize result, save data to text-format file, read saved data file, and analyze.
- View the HTML version of the Live Script
Try in MATLAB Online
You can use this project in MATLAB Online.
Go to MATLAB Online page: https://matlab.mathworks.com/
Click "Open MATLAB Online" to start a MATLAB session in the browser.
In MATLAB Online, select the HOME tab and click "Add-Ons" in the toolstrip. Add-On Explorer window will open. In Add-On Explorer, search "Battery Electric Vehicle in Simscape" and follow navigations. If it is already installed, you will see the "Installed" badge in the search result.
Once you installed, the project can be found in MATLAB at
- /MATLAB Add-Ons/Collections/Battery Electric Vehicle Model in Simscape
To open the project, in the Files window of MATLAB Online, click the BatteryElectricVehicle.prj file.
Cite As
Isaac Ito (2026). Battery Electric Vehicle Model in Simscape (https://github.com/mathworks/Simscape-Battery-Electric-Vehicle-Model/releases/tag/v4.0.1), GitHub. Retrieved .
MATLAB Release Compatibility
Created with
R2020b
Compatible with R2020b and later releases
Platform Compatibility
Windows macOS LinuxTags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
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.
