Battery Model In Matlab