You can either use csvread or textscan. With csvread, you can use:
data = csvread('xxx.csv', 9, 0)
var1 = data(:,1);
var2 = data(:,2);
so that you start reading data on row 9, column 0 in order to avoid reading the 8 header lines in the beginning.
If you want to use textscan,
fid = fopen('xxx.csv');
C = textscan(fid, 'format', 'HeaderLines', 8);
var1 = C{1};
var2 = C{2};
Considering that it seems you seem to be importing heterogeneous data (different data types), I would recommend trying textscan. Depending on how your time vector is imported, you may need to use the datevec function as well.
Best Answer