% gets average performance as a function of valence function result = PlayerWealth(indata,trial) c = 1; for x = 1:36 data = Wealth(indata,trial,x); if data(1,2) == 0 else result(c,1) = x; result(c,2) = data(1,3); c = c + 1; end end
% gets average performance as a function of valence function result = PlayerWealth(indata,trial) c = 1; for x = 1:36 data = Wealth(indata,trial,x); if data(1,2) == 0 else result(c,1) = x; result(c,2) = data(1,3); c = c + 1; end end