Numpy Gradient Function In Matlab