maxchan

From DavinciWiki
Jump to: navigation, search


64-bit SafeYes

Description

Locate the maximum value in linear array

Arguments and Return Values

Parameters: Any numeric array

Return Value: The numeric value of the element containing the maximum value

Usage

Syntax: maxchan(object = VAL)

The maxchan() function finds the number of the element containing the maximum value in an array. Data organization and format are not taken into account and three dimensional arrays are considered linear arrays in the calculation.

maxchan always returns an INT.

Examples

dv> a
5x5x1 array of float, bsq format [100 bytes]
26.4492 38.0391 66.7816 37.2706 85.6510
38.9142 69.1961 28.2079 65.0632 22.9730
18.0558 73.9283 95.5073 69.5841 65.7757
55.7806 41.0407 3.15200 80.7234 48.1681
74.3919 83.3211 91.9874 52.2181 75.3048

dv> b = maxchan(a)
13

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

  • davinci-dev [AT] mars.asu.edu

All other topics

  • See navigation on the left

Related Functions

Recent Core Changes

Modified On: 07-06-2009

Personal tools