In Matlab environment,

Just execute (run) ExperimentForFig2.m


Then let the system run ....