I am working with huge rich text data files (.rtf). The data within the files consists of two columns of numbers formatted with table-like properties. Also, these numbers are either very large or very small so there needs to be a very high level of precision associated with these numbers.
How do I assign the data of the first column to "A" and the second column to "B"?(Would these be vectors?) My problem at the moment has to do with the fact that the rich text formatting doesn't cooperate with an import into MatLab and converting the .rtf file to .txt (then importing) merges the data of both columns into a single column of alternating information.
Once I have "A", I need to be able to compare a single specified value and compare it to the first column of data, find the closest value, and then yield the corresponding value in the second column.
So say I had this sample of data in my file:
1.0E-5 78.29777
1.0625E-5 75.9674
1.125E-5 73.83424
1.1875E-5 71.87197
1.25E-5 70.05895
1.375E-5 66.8116
1.5E-5 63.9797
1.625E-5 61.48167
And my single specified value was 1.123E-5, this value is closest to 1.125E-5 therefore the desired output is 73.83424.
How can I do this, I don't know where to start as I am unfamiliar with the MatLab data import syntax?
Thanks for all help in advance!!