- MATLAB
- vector_field.m : MATLAB code to generate vector fields for different game payoff matrices.
- 2021MEB1264_maths_assignment.mlx : MATLAB Live Script file to run and visualize the vector fields.
- sample_image.png : Sample image generated using the provided code.
- Modify the payoff matrix (e.g., A = [0, -1, 1; 1, 0, -1; -1, 1, 0];) in the vector_field.m file to suit your game scenario.
- Run the 2021MEB1264_maths_assignment.mlx script to visualize the vector field based on the modified payoff matrix.
- Inspect the generated sample_image.png for a visual representation of the vector field.
- Make sure you have MATLAB installed on your system.
- Download the repository files.
- Edit the vector_field.m file to customize the payoff matrix.
- Run the 2021MEB1264_maths_assignment.mlx script to visualize the vector field.
The Game_Vector_Field MATLAB code provides an interactive way to explore and visualize vector fields in the context of game theory. By customizing the payoff matrix, users can gain insights into the dynamics of different game scenarios.
The above image is a sample visualization of the vector field based on a modified payoff matrix.For more details, refer to the MATLAB Documentation.