Is there a way for Gnuplot to read and recognize structured strings? Specifically, I have a few hundred files, all containing measurement data, with measurement conditions defined in the filename.
My files look something like "100d5mK2d0T.txt", which would mean that this data was acquired at 100.5mK temperature and 2.0T magnetic field.
Any chance I could extract the temperature and field strength data from the name, and use them as labels in the plot?
Thanks in advance.
sprintffunction but not thescanf. Nevertheless some string manipulation is possible. As examplename="100d5mK2d0T.txt"; temp = int(name[0:3])+int(name[5:6])/10.0; Bfield = int(name[8:9])+int(name[10:11])/10.0will do what you want, but this implies the formatting is strictly fixed... It would'n work for strings like99d5mK2d05T.txt