[Numpy-discussion] Matlab page on scipy wiki

Alan G Isaac aisaac at american.edu
Fri Feb 10 06:20:01 CST 2006


On Fri, 10 Feb 2006, Stefan van der Walt apparently wrote: 
> In Octave that would be 
> [1, 0, 1:4, 0, 1] 
> Using numpy we currently do 
> concatenate([[1, 0], arange(1,5), [0, 1]]) or 
> vstack(...) 

numpy.r_[1,0,range(1,5),0,1]

fwiw,
Alan Isaac






More information about the Numpy-discussion mailing list