wave splitting
tutor
I am new with Igor and it might be an easy/stupid question. How can I split a wave in two waves, first contain the 1st, 3rd, 5th, 7th ....etc lines of the initial wave and the second the rest (2nd, 4th, 6th, 8th, ... etc)?
Thank you so much
Remember that wave indexing starts with 0.
make/N=(ceil(numpnts(wave0)/2)) W_even = wave0[p*2] make/N=(floor(numpnts(wave0)/2)) W_odd = wave0[p*2+1]
July 15, 2009 at 08:31 am - Permalink
July 15, 2009 at 09:16 am - Permalink
Thanks for that. It really works fine but how I can do it with textwaves?
July 16, 2012 at 10:40 am - Permalink
Assuming that wave0 is a text wave already, then use the /T flag in the make operation as follows:
--
J. J. Weimer
Chemistry / Chemical & Materials Engineering, UAHuntsville
July 16, 2012 at 11:56 am - Permalink
.. I should be able to see that by myself :/
July 17, 2012 at 12:55 am - Permalink