WAVE for a 2D wave?

I need to access a 2D wave in a function:

Function (wave2D)
WAVE wave2D

....etc.

But this does not allow me to use two dimension parameters wave2D[i,j] when I try to write some "for" and "if" language in my Function. It allows only one dimension parameter. If WAVE is a wrong definition for my wave2D, what is the correct one?

Thank you,
isend wrote:
... But this does not allow me to use two dimension parameters wave2D[i,j] ... what is the correct one?


The correct notation for a 2D wave is illustrated below.

Function MyCalculation(ww)
    wave ww

    // ....

    variable a, b, c

    // get the 0,4 value

    a = ww[0][4]

   // transfer ten row values at column index 3 to a different wave

   make/O/N=10 yy
   yy = ww[p][3]

   // ....

end


--
J. J. Weimer
Chemistry / Chemical & Materials Engineering, UAH
And, of course, you may wish to check out the documentation by executing the following commands on Igor's command line:

DisplayHelpTopic "Multidimensional Waves"
DisplayHelpTopic "Multidimensional Wave Indexing"

John Weeks
WaveMetrics, Inc.
support@wavemetrics.com