Create linear spaced vector?

Grant Edwards grante at visi.com
Fri Dec 17 13:49:23 EST 2004


On 2004-12-17, kjm <kjmacken at gmail.com> wrote:

> I am trying to write a generalized function that will create a
> linearly spaced vector, given the start and end point, and the number
> of entries wanted.

>>> from scipy import *
>>> mgrid[0.0:10.0:5j]
array([  0. ,   2.5,   5. ,   7.5,  10. ])

-- 
Grant Edwards                   grante             Yow!  Is this where people
                                  at               are HOT and NICE and they
                               visi.com            give you TOAST for FREE??



More information about the Python-list mailing list