[Numpy-discussion] matlab translation