Search point number from many waves
nicha
I found that x2pnt is for one wave only.
I can change the waves to multidimensional wave and the help says that I can use this function
(ScaledDimPos - DimOffset(waveName, dim))/DimDelta(waveName,dim)
I do not understand it. Can you please help me?
I assume you mean the former...
Now, you have a wave, lets say... WAVE myWave
and a position you want the point from... Variable myPosition
Now what x2pnt does is...
x2pnt(myWave, myPosition) => (myPosition - DimOffset(myWave, 0))/DimDelta(myWave,0)
If you want the position for a higher dimension just exchange the '0' with your dimension.
Or use this function if you want:
Wave mywave
Variable pos, dim
return (pos - DimOffset(mywave, dim))/DimDelta(mywave, dim)
End
September 7, 2010 at 02:46 am - Permalink
September 7, 2010 at 08:21 pm - Permalink
September 8, 2010 at 03:08 am - Permalink