comparison scripts/general/accumarray.m @ 14119:94e2a76f1e5a stable

doc: Final grammarcheck and spellcheck before 3.6.0 release. * container.txi, aspell-octave.en.pws, expr.txi, vectorize.txi, accumarray.m, accumdim.m, interpft.m, strread.m, parseparams.m, warning_ids.m, cellfun.cc, help.cc: grammarcheck and spellcheck docstrings.
author Rik <octave@nomad.inbox5.com>
date Thu, 29 Dec 2011 06:05:00 -0800
parents 0b3518c1228a
children c299bb9f0ad0
comparison
equal deleted inserted replaced
14118:ebe2e6b2ba52 14119:94e2a76f1e5a
24 ## Create an array by accumulating the elements of a vector into the 24 ## Create an array by accumulating the elements of a vector into the
25 ## positions defined by their subscripts. The subscripts are defined by 25 ## positions defined by their subscripts. The subscripts are defined by
26 ## the rows of the matrix @var{subs} and the values by @var{vals}. Each 26 ## the rows of the matrix @var{subs} and the values by @var{vals}. Each
27 ## row of @var{subs} corresponds to one of the values in @var{vals}. If 27 ## row of @var{subs} corresponds to one of the values in @var{vals}. If
28 ## @var{vals} is a scalar, it will be used for each of the row of 28 ## @var{vals} is a scalar, it will be used for each of the row of
29 ## @var{subs}. If @var{subs} is a cell array of vectors, all vectors 29 ## @var{subs}. If @var{subs} is a cell array of vectors, all vectors
30 ## must be of the same length, and the subscripts in the @var{k}th 30 ## must be of the same length, and the subscripts in the @var{k}th
31 ## vector must correspond to the @var{k}th dimension of the result. 31 ## vector must correspond to the @var{k}th dimension of the result.
32 ## 32 ##
33 ## The size of the matrix will be determined by the subscripts 33 ## The size of the matrix will be determined by the subscripts
34 ## themselves. However, if @var{sz} is defined it determines the matrix 34 ## themselves. However, if @var{sz} is defined it determines the matrix
35 ## size. The length of @var{sz} must correspond to the number of columns 35 ## size. The length of @var{sz} must correspond to the number of columns
36 ## in @var{subs}. An exception is if @var{subs} has only one column, in 36 ## in @var{subs}. An exception is if @var{subs} has only one column, in
37 ## which case @var{sz} may be the dimensions of a vector and the 37 ## which case @var{sz} may be the dimensions of a vector and the
38 ## subscripts of @var{subs} are taken as the indices into it. 38 ## subscripts of @var{subs} are taken as the indices into it.
39 ## 39 ##
40 ## The default action of @code{accumarray} is to sum the elements with 40 ## The default action of @code{accumarray} is to sum the elements with