%purpose of this is to figure out the general strategy of %offers from people of a certain degree function result = Offers(indata, trial, degree) neigh = Neighbors(indata,trial); data = indata{trial,5}; s = size(data); s = s(1); counter2 = 1; for counter = 1:s if neigh(data(counter,3),1) == degree result(counter2,1) = data(counter,1) / 1000; result(counter2,2) = data(counter,5) / data(counter,4); counter2 = counter2 + 1; end end