Replace Array Element Numpy Linspace Syntax In Matlab