How to return a row number of 2D wave ?

Hi, I'm a new Igor user.
I attached a captured image.

In procedure, I put 'i<= 145' and 'j<=120' because the wave has 146 rows and 121 columns.
But, I want to put the command returning a row (or column) number in for loop.
Advise me, please.
Thank you.
Untitled_1.png
I'm not sure if I understand your question, but I think you want to extract the wave size in the For loop declaration. You can do something like this:
For(i=0;i<DimSize(wavH_imag,0);i+=1)
   For(j=0;j<DimSize(wavH_imag,1);j+=1)

Hope this helps,
Kurt
KurtB wrote:
I'm not sure if I understand your question, but I think you want to extract the wave size in the For loop declaration. You can do something like this:
For(i=0;i<DimSize(wavH_imag,0);i+=1)
   For(j=0;j<DimSize(wavH_imag,1);j+=1)

Hope this helps,
Kurt


You'll get better speed performance if you pre-calculate the limits like so:
Variable imax= DimSize(wavH_imag,0)
Variable jmax= DimSize(wavH_imag,1)
For(i=0;i<imax;i+=1)
   For(j=0;j<jmax;j+=1)





Larry Hutchinson
WaveMetrics
support@WaveMetrics.com