Implementation of the linspace
Function from Matlab
linspace
Function from MatlabCreates a vector of n elements equally spaced apart.
linspace(a, b, n = 100)
a
: initial numberb
: final numbern
: number of elements (integer >= 2)vector of numbers from a
to b
with n
linearly spaced apart
linspace(0,100, 20)