update matlabscripts for battery analysis