I would like to generate vector names using and put them in a string array, and then I need to call these vector titles in with the readcol command. Here is basically what I want:
vectorname1/vectorname2 are string arrays with the desired names of each vector spreadsheets is a string array of the file names of all of the spreadsheets I want to load in
For I = 0, n do begin
readcol, spreadsheets[I], vectorname1[I], vectorname2[I], format='x,d,x,x,d'
endfor
Plot, vectorname1_1, vectorname2_1
I have tried using the execute command (i.e. execute('readcol,' + spreadsheets[I] + ',' + vectorname1[I] + ',' ...) but IDL returns an error when it encounters the additional quotes in the format keyword.
Any Ideas?