Hi, I'm working on curve fitting a large collection of waves and the data comes in with an offset artifact. Since the curvefit needs the data to begin at the origin, all of the waves need to be zeroed. The function to do this is simple enough, however there are a large number of waves with different naming conventions, and it's going to be laborious to run the function for each wave individually. I'm wondering if there is some shortcut that allows me to take every wave in an experiment as the argument for a function?
Function(AllWaves)
wave=wave_i
wave-=wave[0]
End
Here's a function that will return such a string from a selection in the Data browser
Using this, you can create a function that will accept the returned list as an input, which you can parse and act upon, such as the following:
To run these, you would then do the following:
1. Make a selection in the Data Browser
2. Run the following command:
ParseList(SelectedWaveList())
August 20, 2013 at 02:20 pm - Permalink
August 20, 2013 at 05:06 pm - Permalink
August 21, 2013 at 07:14 am - Permalink