Posts

Showing posts from June, 2025

Lab Manual pg 4th sem harendra

U1= [8 0;30 2]; %Payoff matrix for player 1 U2= [8 30;0 2]; %Payoff matrix for player 2 point_counter = 0; for i =1:2  for j=1:2  if(i == 1 && j == 1)  if((U1(i+1,j) >= U1(i,j)) && (U2(i,j+1) >= U2(i,j)))  % (1,1) is an equilibrium point  disp('1,1')  disp(U1(1,1))  disp(U2(1,1))  disp('Is an equilibrium point')  point_counter = point_counter + 1;  end  end  if(i == 1 && j == 2)  if((U1(i+1,j) >= U1(i,j)) && (U2(i,j-1) >= U2(i,j)))  % (1,2) is an equilibrium point  disp('1,2')  disp(U1(1,2))  disp(U2(1,2))  disp('Is an equilibrium point')  point_counter = point_counter + 1;  end  end  if(i == 2 && j == 1)  if((U1(i-1,j) >= U1(i,j)) && (U2(i,j+1) >= U2(i,j)))  % (2,1) is an equilibrium point  disp('2,1')  disp(U1(2,1))  disp(U2(2,1))  disp('Is an equilibrium point')  point_counter...