Mercurial > octave
changeset 26963:589b00536a39 stable
doc: Small fixes to mat2cell and polyeig docstrings (bug #55985).
* cellfun.cc (Fmat2cell): Replace reference to old variable "di" with variable
"dimi".
* polyeig.m: Use @var{} macro around "z" in @code example.
author | Rik <rik@octave.org> |
---|---|
date | Sun, 24 Mar 2019 21:50:07 -0700 |
parents | 86f439ba2d47 |
children | b57d596b909b 222f5ac853c8 |
files | libinterp/corefcn/cellfun.cc scripts/polynomial/polyeig.m |
diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/cellfun.cc Wed Mar 20 08:13:57 2019 -0700 +++ b/libinterp/corefcn/cellfun.cc Sun Mar 24 21:50:07 2019 -0700 @@ -2118,7 +2118,7 @@ integers which specifies how to divide that dimension's elements amongst the new elements in the output @var{C}. The number of elements in the @var{i}-th dimension is @code{size (@var{A}, @var{i})}. Because all elements in @var{A} -must be partitioned, there is a requirement that @code{sum (@var{di}) == size +must be partitioned, there is a requirement that @code{sum (@var{dimi}) == size (@var{A}, i)}. The size of the output cell @var{C} is numel (@var{dim1}) x numel (@var{dim2}) x @dots{} x numel (@var{dimn}).
--- a/scripts/polynomial/polyeig.m Wed Mar 20 08:13:57 2019 -0700 +++ b/scripts/polynomial/polyeig.m Sun Mar 24 21:50:07 2019 -0700 @@ -29,8 +29,8 @@ ## ## @code{polyeig} solves the eigenvalue problem ## -## @code{(@var{C0} + @var{C1} @var{z} + @dots{} + @var{Cl} z^@var{l}) @var{v} = -## 0}. +## @code{(@var{C0} + @var{C1} @var{z} + @dots{} + @var{Cl} @var{z}^@var{l}) +## @var{v} = 0}. ## ## Note that the eigenvalues @var{z} are the zeros of the matrix polynomial. ## @var{z} is a row vector with @code{@var{n}*@var{l}} elements. @var{v} is a