changeset 22716:c2f0e687471e stable

doc: Improve docstring for cellindexmat(). * cellfun.cc (Fcellindexmat): Improve docstring.
author Rik <rik@octave.org>
date Thu, 03 Nov 2016 10:06:16 -0700
parents ea09770fb556
children f0b4e3903f7f d9bec44ffaff
files libinterp/corefcn/cellfun.cc
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/cellfun.cc	Sun Oct 30 16:58:04 2016 +0100
+++ b/libinterp/corefcn/cellfun.cc	Thu Nov 03 10:06:16 2016 -0700
@@ -2362,10 +2362,14 @@
 @group
 Y = cell (size (X));
 for i = 1:numel (X)
-  Y@{i@} = X@{i@}(varargin@{:@});
+  Y@{i@} = X@{i@}(varargin@{1@}, varargin@{2@}, @dots{}, varargin@{N@});
 endfor
 @end group
 @end example
+
+The indexing arguments may be scalar (@code{2}), arrays (@code{[1, 3]}),
+ranges (@code{1:3}), or the colon operator (@qcode{":"}).  However, the
+indexing keyword @code{end} is not available.
 @seealso{cellslices, cellfun}
 @end deftypefn */)
 {