How to display 1d row of 2d data using scaled dimension ?

Hi,
I have a simple question.
I want to display 1d row data graph of 2d matrix data using scaled dimension index.
But, for example,
"Display 2Dwave[](20)"

is not work.

How can I do this easily ?

Thank you in advance.

You need to execute:
Variable columnIndex = ScaleToIndex(2DWave, 20, 1)
Display 2DWave[][columnIndex]


The ScaleToIndex function was added in Igor7 so, for this to work with Igor6, you also need this:

#if IgorVersion() < 7.00
Function ScaleToIndex(w, scaledIndex, dimension)    // Based on help for x2pnt
    Wave w
    Variable scaledIndex
    Variable dimension
   
    Variable offset = DimOffset(w, dimension)
    Variable delta = DimDelta(w, dimension)
    Variable index = (scaledIndex - offset) / delta
    index = round(index)
    return index
End
#endif