This example prints the maximum value in an array, and the subscript(下标) of that value:
; Create a simple two-dimensional array:
D = DIST(100)
; Print the maximum value in array D and its linear subscript:
PRINT, 'Maximum value in array D is:', MAX(D, I)
PRINT, 'The subscript of the maximum value is', I
*IDL O
IDL 数组最值与下标
最新推荐文章于 2022-07-19 18:23:53 发布