Makeindex on MacOS X 10.6.2

Please help me for getting correct answer from Makeindex procedure.

I'm a user of IGOR Pro 6.12 on MacOS X 10.6.2 white macbook.
I want to know why my mac give wrong answer for Makeindex.
For example, if I perform a series of commands:

Make/D en,in
en=enoise(1)
Makeindex en in
Display en vs in

they should provide a monotonically increasing curve,
but they do not.

Give me a clue to solve the problem.
Thank you.

moto




No, that's not what the sort index does. You expect that the index labels a row with it's position. So given this data:
1
3
5
2
4

you would expect

1 0
3 2
5 4
2 1
4 3

But, in fact, the index wave for a given row gives the index of the data point that would be in that row after sorting. With Igor's index wave, you can get a sorted version of the wave this way:

Duplicate mywave, index, sorted
MakeIndex mywave, index
sorted = mywave[index[p]]

The index for my example above would look like this:
0 After sorting, the data point at row 0 would be in the first position
3 After sorting the data point at row 3 would be in the second position
1 After sorting, the data point at row 1 would be in the third position
4 Etc....
2

John Weeks
WaveMetrics, Inc.
support@wavemetrics.com