All files are in Matlab script. Each file name’s last two characters signify which plot it generates. For instance, TestStochasticMatrix2b.M can be run in Matlab and it will generate a plot for Figure 2 b in the manuscript. The plots are meant to show some aspects of feedback models and a leader-follower mode.
The equations are iterated forward up to a time max (tmax) of 60, which is enough to show either consensus or the behaviour we want. ‘A’ is as in the manuscript and the other variable names follow the same pattern.
TestStochasticMatrixMulti3.m is the Matlab file for last figure in the paper. The dynamics are again an iteration to propagate forward the opinions of agents who hold multi-dimensional views (in this case 3-dimensional belief for each agent).
Users can just run the files in Matlab and the plots will be generated. No special packages are required to run these files. Each file generates a separate image.