x2pnt
x2pnt (waveName, x1)
The x2pnt function returns the integer point number on the wave whose X value is closest to x1.
For higher dimensions, use ScaleToIndex.
See Also
DimDelta, DimOffset, pnt2x, ScaleToIndex
For an explanation of X scaling of 1D waves, see The Waveform Model of Data.