Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

to create an array with values that are spaced linearly in a specified interval

np.linspace(0, 10, num=5)
array([ 0. ,  2.5,  5. ,  7.5, 10. ])
Source by numpy.org #
 
PREVIOUS NEXT
Tagged: #create #array #values #spaced #linearly #interval
ADD COMMENT
Topic
Name
1+9 =