function result = sim2(indata,y)
for x = 1:10
    data = sim(indata,x,y);
    result(x,1) = x;
    result(x,2) = data(1,3);
end