0

I have 11 different text waves with the identified molecular formulas from different samples. I need to create a single "master" text wave with ALL the formulas identified in all samples WITHOUT ANY DUPLICATES.

1 Answers1

0

In Igor 7+ you can do this with the FindDuplicates command.

The steps needed are:

// concatenate 11 different text waves
// make a string of semicolon separated wavenames that you'd like to combine e.g.
String wList = WaveList("textw*",";","")
// and do
Concatenate/O/NP=0 wList, longTextWave
// an alternative is to type them all out
Concatenate/O/NP=0 textw0,textw1, ... textw11, longTextWave
// longTextWave will be a long 1D text wave (/NP=0 does this job)
// get unique formulas
FindDuplicates/O/RT=uniqueTextWave longTextWave

Unique formulas are in uniqueTextWave

quantixed
  • 287
  • 3
  • 12