function [ Data, dFit, tArray ] = getData(offset)
% Read and process experimental data
% from file data.txt

f = fopen('data.txt','r');
A = fscanf(f,'%g');
A = reshape(A, 9, length(A)/9);
fclose(f);

tArray = linspace(0, 4800+650-offset, 200);
Data = zeros(4, length(tArray) );
dFit = zeros(4, length(tArray) );
for jj = 1 : 4
    Data(jj, :) = squeeze( extract(A(1, :), smooth(A(jj+1, :), 10), tArray + offset) );
end;

end

