[SciPy-user] Subdivision of an interval

Pearu Peterson pearu at scipy.org
Tue Jan 13 05:07:42 EST 2004



On Tue, 13 Jan 2004, Nils Wagner wrote:

> Hi all,
> 
> How can I subdivide an interval provided that size(x) = n ?
> 
> n = 10
> h = (xu-xl)/n
> x = arange(xl,xu,h)
> 
> Sometimes size(x) <> n

Use:

  x=xl+h*arange(n)

Pearu



More information about the SciPy-User mailing list