[SciPy-user] concatenate array with number

Nicolas Chopin nicolas.chopin@bristol.ac...
Sat Aug 9 05:19:01 CDT 2008

sorry, I realise now I should have posted to the numpy mailing list.
Many thanks for the answers. My personal favourite is:

numpy.concatenate((x, x[-1:]))

because it's easier to remember.
Too bad x[-1] is not recognised as an array as well (like in Matlab for 
> <http://www.stats.bris.ac.uk/%7Emanxac/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/scipy-user/attachments/20080809/5c9de29a/attachment.html 

More information about the SciPy-user mailing list