ecm
Create equivalent circuit model object for estimating battery parameter from impedance data
Since R2025a
Description
Use ecm to create an equivalent circuit model
ECM object. Use this object to perform battery parameter estimation from
battery time-based impedance data.
You can obtain the impedance data at different operating conditions by using multiple
techniques, such as hybrid pulse power characterization (HPPC). To select the topology of the
equivalent circuit model, specify the amount of resistor-capacitor parallel pairs by using the
NumRCPairs property.
This table shows the equivalent circuit model topology depending on the value of the
NumRCPairs property.
| Circuit Name | NumRCPairs Property Value | Topology and Parameters |
|---|---|---|
| Single resistor | 0 |
|
| Thevenin ECM or 1-RC branch ECM | 1 |
|
| 2-RC branch ECM | 2 |
|
| 3-RC branch ECM | 3 |
|
To estimate model parameters, use this object and the HPPCTest object as
inputs to the fitECM function.
This figure shows the typical workflow to estimate the parameters of an equivalent circuit
model from HPPC test data:

Creation
Syntax
Description
creates a
default equivalentCircuitModel = ecmECM object with default property values.
creates an equivalentCircuitModel = ecm(NumRCPairs)ECM object with an amount of resistor-capacitor parallel pairs
equal to NumRCPairs.
specifies the equivalentCircuitModel = ecm(NumRCPairs,PropertyName=Value)equivalentCircuitModel properties using one or more
name-value arguments.
Input Arguments
Properties
Object Functions
simulateCurrentPulse | Simulate circuit in time domain at given current pulses |
mergeModelParameters | Merge parameters of multiple ECM objects |
parameterizeEquivalentCircuitBlock | Parameterize Battery Equivalent Circuit block from ECM
data |
removePulseParameters | Remove parameter data for specific pulse from ECM
object |
plot | Plot measured and simulated voltage for pulse at specific index |
simulateHPPCTest | Plot HPPC test measured voltage against simulated voltage of equivalent circuit model |
plotModelParameters | Plot parameters of ECM object |
simulateFrequencyResponse | Simulate circuit in frequency domain |
Version History
Introduced in R2025a



