Mercurial > octave
changeset 24493:dc6404ab6947 stable
doc: Small tweaks to fplot and surfnorm docstrings (bug #52761).
* fplot.m: Use parentheses around numerator in stepsize calculation
"(xhi - xlo) / N".
* surfnorm.m: Use same variable name "len" for overal length of normal vector.
author | Rik <rik@octave.org> |
---|---|
date | Fri, 29 Dec 2017 08:41:20 -0800 |
parents | abe0b0e08897 |
children | 7070fab40871 62a7d3f292d6 |
files | scripts/plot/draw/fplot.m scripts/plot/draw/surfnorm.m |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/draw/fplot.m Tue Dec 26 11:32:35 2017 -0800 +++ b/scripts/plot/draw/fplot.m Fri Dec 29 08:41:20 2017 -0800 @@ -37,7 +37,7 @@ ## to 2e-3 (.2%). ## ## @var{n} is the minimum number of points to use. When @var{n} is specified, -## the maximum stepsize will be @code{@var{xhi} - @var{xlo} / @var{n}}. More +## the maximum stepsize will be @code{(@var{xhi} - @var{xlo}) / @var{n}}. More ## than @var{n} points may still be used in order to meet the relative ## tolerance requirement. ##
--- a/scripts/plot/draw/surfnorm.m Tue Dec 26 11:32:35 2017 -0800 +++ b/scripts/plot/draw/surfnorm.m Fri Dec 29 08:41:20 2017 -0800 @@ -46,7 +46,7 @@ ## ## @example ## @group -## mag = sqrt (nx.^2 + ny.^2 + nz.^2); +## len = sqrt (nx.^2 + ny.^2 + nz.^2); ## nx ./= len; ny ./= len; nz ./= len; ## @end group ## @end example