Mercurial > hg > octave-nkf
comparison 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 |
comparison
equal
deleted
inserted
replaced
3656:96679fb690a4 | 3657:a908150a3a32 |
---|---|
285 \n\ | 285 \n\ |
286 @noindent\n\ | 286 @noindent\n\ |
287 returns the smallest element of @var{x}.\n\ | 287 returns the smallest element of @var{x}.\n\ |
288 \n\ | 288 \n\ |
289 For complex arguments, the magnitude of the elements are used for\n\ | 289 For complex arguments, the magnitude of the elements are used for\n\ |
290 comparison.") | 290 comparison.\n\ |
291 \n\ | |
292 If called with two output arguments, also returns the index of the\n\ | |
293 minimum value(s). Thus,\n\ | |
294 @example\n | |
295 [x, ix] = min ([1, 3, 0, 2, 5])\n\ | |
296 @end example\n\ | |
297 \n\ | |
298 @noindent\n\ | |
299 returns @var{x} = 0 and @var{ix} = 3.") | |
291 { | 300 { |
292 octave_value_list retval; | 301 octave_value_list retval; |
293 | 302 |
294 int nargin = args.length (); | 303 int nargin = args.length (); |
295 | 304 |
512 \n\ | 521 \n\ |
513 @noindent\n\ | 522 @noindent\n\ |
514 returns the largest element of @var{x}.\n\ | 523 returns the largest element of @var{x}.\n\ |
515 \n\ | 524 \n\ |
516 For complex arguments, the magnitude of the elements are used for\n\ | 525 For complex arguments, the magnitude of the elements are used for\n\ |
517 comparison.") | 526 comparison. |
527 \n\ | |
528 If called with two output arguments, also returns the index of the\n\ | |
529 maximum value(s). Thus,\n\ | |
530 @example\n | |
531 [x, ix] = max([1, 3, 5, 2, 5])\n\ | |
532 @end example\n\ | |
533 \n\ | |
534 @noindent\n\ | |
535 returns @var{x} = 5 and @var{ix} = 3.") | |
518 { | 536 { |
519 octave_value_list retval; | 537 octave_value_list retval; |
520 | 538 |
521 int nargin = args.length (); | 539 int nargin = args.length (); |
522 | 540 |