simulation of an electric vehicle with matlab