filename = 'data.txt';

%read from row 0 and column 1. Column 0 contains only index
data = csvread(filename,0,1);

[trainingSet, validationSet, testSet] = splitDataNN(data, 0.5, 0.25, 0.25);