Return a row vector with n linearly spaced elements between base and limit.
If the number of elements is greater than one, then the endpoints base and limit are always included in the range. If base is greater than limit, the elements are stored in decreasing order. If the number of points is not specified, a value of 100 is used.
The linspace
function returns a row vector when both base
and limit are scalars. If one, or both, inputs are vectors, then
linspace
transforms them to column vectors and returns a matrix where
each row is an independent sequence between
base(row_n), limit(row_n)
.
For compatibility with MATLAB, return the second argument (limit) if fewer than two values are requested.
See also: logspace.
Package: octave