I have a text file with two columns of tab separated data points. The first row has the title of each column. Or it looks like following example
x-values y-values
6 36
7 49
8 64
9 81
Now, I want to read only the numerical data in each column as an array so that I can assign a variable to each element in the column. By doing this I will be able to do any math with elements of my choice. For example I want to do x[2]*y[2] or (x[2]+y[3])/10, etc..
Could you please help me writing a code for this? Any helpful links will be appreciated. If you can please write a simple code for above example for me so that I can expand this to use for my actual text file with huge data.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have a text file with two columns of tab separated data points. The first row has the title of each column. Or it looks like following example
x-values y-values
6 36
7 49
8 64
9 81
Now, I want to read only the numerical data in each column as an array so that I can assign a variable to each element in the column. By doing this I will be able to do any math with elements of my choice. For example I want to do x[2]*y[2] or (x[2]+y[3])/10, etc..
Could you please help me writing a code for this? Any helpful links will be appreciated. If you can please write a simple code for above example for me so that I can expand this to use for my actual text file with huge data.