Battery Pack Simulation Matlab