%values = fopen('valoresIniciais.txt','w+t');
v = zeros(10320,4);

count = 1;
for fold = 1:120
    data = dlmread('beagle_hmc.txt');
    f = dlmread(strcat('ids_teste_individuo_fold_', int2str(fold), '.txt'));
    
    testPatterns = data(f, :);
    
    v(count:fold*86,:) = testPatterns(:, 8:11);
    
    count = count + 86;
end

dlmwrite('Valores Iniciais.txt', v, 'delimiter', ' ');