Skip to content

AdvaitChandorkar07/SimplexGameTheory

Repository files navigation

Game_Vector_Field

An Interactive MATLAB Code for Visualizing Vector Fields in Game Theory

Tools Used

  • MATLAB

GitHub Repository Structure

  • 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.

Working

1. Code Customization :

  • 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.

2. Visualization :

  • 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.

How to Run

  • 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.

Conclusion

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages