function [id,data] = readCSV(filename)

% header
fid = fopen(filename,'r');
line = fgets(fid);
id = textscan(line,'%s',length(strfind(line,',')),'delimiter',',');
fclose(fid);
id = id{1}(2:end);

% data
data = csvread(filename, 1, 1);
data = data(1:end-1,:)';
