I'm not sure what version of Julia you are using but in Julia 0.3.9 x = linspace(0,1,N) does return a linearly spaced N-element array of floats from 0-1
On Tuesday, September 29, 2015 at 3:44:43 PM UTC-7, feza wrote: > > In matlab x = linspace(0,1,n) creates a vector of floats of length n. In > julia it seems like the only way to do this is to use x = collect( > linspace(0,1,n) ) . Is there a nicer syntax? I do mainly numeric computing > and I find this quite common in my code. > > Thanks. >
