Extracting values from text waves
Catalin B.
I am fairly new in using IGOR Pro. What I want to obtain is: from a 2D text wave I want to extract 2 numbers and store them in 2 variables so I can use them later in various calculations.
The attached image is an example. From this one I want to obtain the numeric values corresponding to pict_details[2][4] and pict_details[11][4].
Does anyone know how to do this?
Thank you.
Wave/T tw // Assumed 2D
Variable row, column // Zero-based
String text = tw[row][column]
Variable number = str2num(text)
return number
End
May 13, 2013 at 09:29 am - Permalink
got "tw" instead of a string variable or string function name
Thank you
May 15, 2013 at 12:00 am - Permalink
Check you have the "/T" in the wave declaration.
May 15, 2013 at 01:07 am - Permalink
Inconsistent type for a wave reference
May 15, 2013 at 01:51 am - Permalink
Thank you very much for your help.
May 15, 2013 at 01:56 am - Permalink