
conditions = 1;

for t=1:length(trials)
    
    subplot(3,3,conditions);
    hold off
    scatter3(trials{t}(:,8),trials{t}(:,10),trials{t}(:,9),'.k')
    hold on
    scatter3(trials{t}(1,8),trials{t}(1,10),trials{t}(1,9),'.g')
    scatter3(trials{t}(end,8),trials{t}(end,10),trials{t}(end,9),'.r')
    
    s = (input('condition: ','s'));
    if s == 'y'
       conditions = conditions+1;
       s=conditions-1;
    else 
       s = str2num(s); 
    end
    subplot(3,3,s);
    scatter3(trials{t}(:,8),trials{t}(:,10),trials{t}(:,9),'.k')
    hold on
    scatter3(trials{t}(1,8),trials{t}(1,10),trials{t}(1,9),'.g')
    scatter3(trials{t}(end,8),trials{t}(end,10),trials{t}(end,9),'.r')
    
end