This archive includes files necessary to run different capacity-estimation algorithms. Specifically, it reproduces the results from sections 4.19 through 4.21 of this textbook. It contains the following MATLAB code: - runSixScenarios.m: This is the main code to run all six simulations - runScenario.m: This runs a single simulation and plots results - xLSalgos.m: This executes all algorithms for a single scenario --- All files in this archive are copyright (c) 2016 by Gregory L. Plett of the University of Colorado Colorado Springs (UCCS). This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 Intl. License, v. 1.0. It is provided "as is", without express or implied warranty, for educational and informational purposes only. These files are provided as a supplement to: Plett, Gregory L., "Battery Management Systems, Volume II, Equivalent-Circuit Methods,” Artech House, 2015.