Replace Array Element Numpy Linspace Syntax In Matlab Which Function