Abstract: This paper proposes a Kalman filter based state-of-charge (SOC) estimation MATLAB function using a second-order RC equivalent circuit model (ECM). The function requires the SOC-OCV (open ...