How to extract one every 60 points from a wave?

Hello,

I have a wave with a huge number of points and I want to extract from it only one every 60 points (and put them into a new wave) in order to fit it quickly.

Here is some details :

Point | time (s) | interesting value
0 ... NO
... ... NO
n 2353 <--- to get
n+1 2353.17 NO
... ... NO
n+60 2354 <--- to get
etc.

Thank you in advance.


Best,

Clément.
Let's assume your data is in a wave called "myData". Here's how you could get a wave "mySubset" with only every 60th point, in just a single line:
Make /O/N=(floor(DimSize(myData, 0) / 60)) mySubset = myData[p*60]


You can also make direct use of wave subrange syntax in the fitting, and avoid making a temporary copy:
CurveFit <yourFunction, flags, etc> myData[,;60]


See "Subrange Display Syntax" in the Igor manual.