Skip to content

linspace

builtin · libnexusinterp/corefcn/data-proprietary.cc

: y = linspace (a, b)
: y = linspace (a, b, n)

Return n (default 100) linearly spaced points from a to b inclusive as a row vector. When a or b are vectors each row of the result spans one pair of endpoints. Non-integer n is rounded down; n below one gives an empty row and n equal to one returns b.