function importOptode(fileToRead1)
%IMPORTFILE(FILETOREAD1)
%  Imports data from the specified file
%  FILETOREAD1:  file to read

%  Auto-generated by MATLAB on 14-Jul-2009 14:59:56

DELIMITER = ',';
HEADERLINES = 1;

% Import the file
newData1 = importdata(fileToRead1, DELIMITER, HEADERLINES);

% Create new variables in the base workspace from those fields.
vars = fieldnames(newData1);
for i = 1:length(vars)
    assignin('base', vars{i}, newData1.(vars{i}));
end

O2Conc=newData1.data(:,1);
O2Sat=newData1.data(:,2);
Temperature=newData1.data(:,2);
RoverTime=newData1.textdata(2:end,1);
[date,time]=strtok(RoverTime,'T');
time=strtok(time,'T');
datetime=strcat(date,',',time);
TS=timeseries(O2Sat,datetime);

%x = str2num('str')