Sort waves numerically
ford
2)Do the the waves with file names need to have 0's as place holders...ie (wavename: "022412-TLDK_50C_0001" for file names ending in 1-1500 for example.
3)Can Igor sort those wave names effectively in a table?
Thanks.
•make/t/n=7 textWave
•String list=WaveList("*",";","")
•textWave=stringFromList(p,list)
•edit textWave
•Sort textWave,textWave
I hope this helps,
A.G.
WaveMetrics, Inc.
February 24, 2012 at 05:11 pm - Permalink
/A Alphanumeric sort. When sortKeyWaves includes text waves, the normal sorting places "wave1" and "wave10" before "wave9". Use /A to sort the number portion numerically, so that "wave9" is sorted before "wave10".
See help for Sort for a more complete explanation.
February 27, 2012 at 07:43 am - Permalink