[SciPy-user] creating an array with changing resolution

Oz Nahum nahumoz at gmail.com
Sat May 30 06:29:30 EDT 2009


Hi everyone

I have an X,Y domain I would like to explore in different detail levels.

In octave,  I can define a vector like:

v = [1:1:40,40:0.1:50,50:1:100]

is this the only way to do it in numpy ?
v = numpy.r_[arange(0.0,40.0, 1),arange(40.0,50.0, 0.1),arange(50.0,100.0,
1)]

Not that it's bad, but i just thought maybe there's another way to do it.

Thanks in advance for any suggestion

Oz.



-- 
----
           Imagine there's no countries
           It isn't hard to do
           Nothing to kill or die for
           And no religion too
           Imagine all the people
           Living life in peace





-- 
----
           Imagine there's no countries
           It isn't hard to do
           Nothing to kill or die for
           And no religion too
           Imagine all the people
           Living life in peace
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20090530/d65376f4/attachment.html>


More information about the SciPy-User mailing list