I = csvread('output.csv');

% Get rid of extra rows
I(1:35,:) = [];
[rows, cols] = size(I);


for row=1:rows
    tick = ceil(row/5);
   if I(row,1) == 2
       I(row,1) = tick;
       P2(tick,:) = I(row,:);
   elseif I(row,1) == 3
       I(row,1) = tick;
       P3(tick,:) = I(row,:);
   end
end
