Matlab application in oil engineering