Question: Please write in matlab 6. Matlab problem: Write a Matlab function that computes the value and security strategies (over mixed strategies) of a two player,
Please write in matlab 6. Matlab problem: Write a Matlab function that computes the value and security strategies (over mixed strategies) of a two player, two move, zero-sum game, . The input/output syntax should be of the form [P1,P2, V1,V2]ComputeValue (M) where P1 and P2 are the security strategies of player 1 and player 2 respectively. Both outputs should be vectors of dimension 2 x 1 V1 and V2 are the security levels of player 1 and player 2 respectively M is a matrix of dimension 2 x 2 that captures the row player's payoff in the zero-sum game HINT: A player's strategy can be expressed as a probability distribution (p,1-p) since a player has only two moves. Feel free to consider discrete values for p of the form p0:0.01 1. Note that this discretization might mean that V1 and V2 are slightly different GRADING #1 : Run your code on the payoff matrix given in Problem #1. Print your results and sub with your homework GRADING #2: We will also run your code on three different test cases. Please make sure your code follows the syntax highlighted above. The grader will not alter you code in any way to make it work
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
