MATLAB for Battery Modeling