[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Where is the largest point ?

I'm still pretty basic at IDL and a lot of the _no loop_ concepts escape me
entirely (I'm too used to C and such).
If I have a 2D matrix, how do I find where is the maximum ?

Mat=FltArr(NbX, NbY)
[Xmax, YMax] = Where( Mat eq Max(Mat) )

or something like that ?
Guillaume Dargaud
Colorado State University - Dept of Atmospheric Science
  "If those folks in Kansas are right about evolution never having happened,
I sure hope it happens soon."    - Michael Sheinbaum.