Mercurial > hg > octave-lyh
diff src/DLD-FUNCTIONS/minmax.cc @ 3657:a908150a3a32
[project @ 2000-04-11 19:02:03 by jwe]
author | jwe |
---|---|
date | Tue, 11 Apr 2000 19:02:05 +0000 |
parents | bf22deaf04ed |
children | 50f30e40abca |
line wrap: on
line diff
--- a/src/DLD-FUNCTIONS/minmax.cc +++ b/src/DLD-FUNCTIONS/minmax.cc @@ -287,7 +287,16 @@ returns the smallest element of @var{x}.\n\ \n\ For complex arguments, the magnitude of the elements are used for\n\ -comparison.") +comparison.\n\ +\n\ +If called with two output arguments, also returns the index of the\n\ +minimum value(s). Thus,\n\ +@example\n +[x, ix] = min ([1, 3, 0, 2, 5])\n\ +@end example\n\ +\n\ +@noindent\n\ +returns @var{x} = 0 and @var{ix} = 3.") { octave_value_list retval; @@ -514,7 +523,16 @@ returns the largest element of @var{x}.\n\ \n\ For complex arguments, the magnitude of the elements are used for\n\ -comparison.") +comparison. +\n\ +If called with two output arguments, also returns the index of the\n\ +maximum value(s). Thus,\n\ +@example\n +[x, ix] = max([1, 3, 5, 2, 5])\n\ +@end example\n\ +\n\ +@noindent\n\ +returns @var{x} = 5 and @var{ix} = 3.") { octave_value_list retval;