linspace

linspace(start, stop, n=100)

Construct a range of n linearly spaced elements from start to stop.

Examples

julia> linspace(0,2*pi,10)
10-element Array{Float64,1}:
 0.0     
 0.698132
 1.39626 
 2.0944  
 2.79253 
 3.49066 
 4.18879 
 4.88692 
 5.58505 
 6.28319 
julia> linspace(0,20,4)
4-element Array{Float64,1}:
 0.0
 6.66667
 13.3333
 20.0

See Also

User Contributed Notes

Add a Note

The format of note supported is markdown, use triple backtick to start and end a code block.

*Required Field
Details

Checking you are not a robot: