Mercurial > hg > octave-avbm
comparison src/data.cc @ 6630:0fcc8d65b571
[project @ 2007-05-16 15:32:09 by jwe]
author | jwe |
---|---|
date | Wed, 16 May 2007 15:32:09 +0000 |
parents | dc83c15d7149 |
children | 9042b00fc45e |
comparison
equal
deleted
inserted
replaced
6629:7e2b5d0cf7ad | 6630:0fcc8d65b571 |
---|---|
2323 | 2323 |
2324 DEFUN (linspace, args, , | 2324 DEFUN (linspace, args, , |
2325 "-*- texinfo -*-\n\ | 2325 "-*- texinfo -*-\n\ |
2326 @deftypefn {Built-in Function} {} linspace (@var{base}, @var{limit}, @var{n})\n\ | 2326 @deftypefn {Built-in Function} {} linspace (@var{base}, @var{limit}, @var{n})\n\ |
2327 Return a row vector with @var{n} linearly spaced elements between\n\ | 2327 Return a row vector with @var{n} linearly spaced elements between\n\ |
2328 @var{base} and @var{limit}. The number of elements, @var{n}, must be\n\ | 2328 @var{base} and @var{limit}. If the number of elements is greater than one,\n\ |
2329 greater than 1. The @var{base} and @var{limit} are always included in\n\ | 2329 then the @var{base} and @var{limit} are always included in\n\ |
2330 the range. If @var{base} is greater than @var{limit}, the elements are\n\ | 2330 the range. If @var{base} is greater than @var{limit}, the elements are\n\ |
2331 stored in decreasing order. If the number of points is not specified, a\n\ | 2331 stored in decreasing order. If the number of points is not specified, a\n\ |
2332 value of 100 is used.\n\ | 2332 value of 100 is used.\n\ |
2333 \n\ | 2333 \n\ |
2334 The @code{linspace} function always returns a row vector.\n\ | 2334 The @code{linspace} function always returns a row vector.\n\ |
2335 \n\ | |
2336 For compatibility with @sc{Matlab}, return the second argument if\n\ | |
2337 fewer than two values are requested.\n\ | |
2335 @end deftypefn") | 2338 @end deftypefn") |
2336 { | 2339 { |
2337 octave_value retval; | 2340 octave_value retval; |
2338 | 2341 |
2339 int nargin = args.length (); | 2342 int nargin = args.length (); |