SO503, Spring 2010

Matlab Reading of a Text File

You are to write Matlab code to parse one of the reflectance spectra that we looked at two weeks ago with the hyperspectral imagery.    You should insure that the spectra files you read have four columns; most of the computers in the lab have old files with only three columns of data.

Your code must be capable of taking only a single input (the file name) and doing everything else automatically.  This would be a preliminary step to opening thousands of files to find the one with the best match for a particular point in a hyperspectral scene, and as such you cannot afford to manually preprocess the files or use a data importer to get the data into Matlab.

The code at http://blinkdagger.com/matlab/parse-data should provide a good starting point in terms of laying out the steps you must take, and the Matlab resources that will do the job.  You are highly encouraged to read it before coming to class so that you can ask intelligent questions. 

You will turn in: