prisoner = 1:2
outcomes = 
bias = .25
choice = zeros(1,2)
These are sub functions and I want to only change 1 element of the 'choice' vector eachtime the main function is called. How could this be done?
These are only a part of the subfunctions, but this is where I'm struggling..
function [choice(1)] = prisoner_coop(prisoner,outcomes,bias)
choice(1) = 1
function [choice(2)] = prisoner_defect(prisoner,outcomes,bias)
choice(2) = 0