Mercurial > octave
changeset 27363:d9d10a49926d stable
doc: Improve `contour` docstring example (bug #56849).
* scripts/plot/draw/contour.m: The previous example had the outer product
`z = x' * y`. But `x` is supposed to be the column count of `z`. Thus the
position of `x` in the outer product is misleading.
author | Kai T. Ohlhus <k.ohlhus@gmail.com> |
---|---|
date | Tue, 03 Sep 2019 18:00:25 +0900 |
parents | a7d21a6a7922 |
children | 3465a6969616 5283c505f92b |
files | scripts/plot/draw/contour.m |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/draw/contour.m Sat Aug 31 15:00:42 2019 +0900 +++ b/scripts/plot/draw/contour.m Tue Sep 03 18:00:25 2019 +0900 @@ -47,9 +47,9 @@ ## ## @example ## @group -## x = 0:2; -## y = x; -## z = x' * y; +## x = 0:3; +## y = 0:2; +## z = y' * x; ## contour (x, y, z, 2:3) ## @end group ## @end example