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 always returns a row vector if both base
and limit are scalars. If one, or both, of them are column vectors,
linspace
returns a matrix.
For compatibility with MATLAB, return the second argument (limit) if fewer than two values are requested.
See also: logspace.
Package: octave