agrees with matlab