[Newbie question] Is 0:3:100 possible?

Hi,

I come from using Matlab and I was just curious if it was possible to create an arange from a quick for loop of numbers? For example:

0:3:100 would generate:
0, 3, 6, 9, 12, …, 96, 99

And I would want this range to be in an arange() object. Is there a similar way of doing this? Thanks.

Hi,

numpy.arange(0, 100, 3) perhaps ?

Matthieu

2007/9/4, Robert Dailey <rcdailey@…287…>:

···

Hi,

I come from using Matlab and I was just curious if it was possible to create an arange from a quick for loop of numbers? For example:

0:3:100 would generate:
0, 3, 6, 9, 12, …, 96, 99

And I would want this range to be in an arange() object. Is there a similar way of doing this? Thanks.


This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.

Download your FREE copy of Splunk now >> http://get.splunk.com/


Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users