《演化博弈模拟图程序》由会员分享,可在线阅读,更多相关《演化博弈模拟图程序(4页珍藏版)》请在金锄头文库上搜索。
1、%函数function dxdt=differential(t,x) dxdt=x(1)*(1-x(1)*(5-6*x(2);x(2)*(1-x(2)*(1-6*x(1); end%主程序 clear %y-x for i=0:0.1:1for j=0:0.1:1T,Y=ode45( differential figure(1)gridonplot(Y(:,1),Y(:,2);holdonend end %dx/dt-t for i=0:0.1:1for j=0:0.1:1T,Y=ode45( differential figure(2)gridonplot(T,Y(:,1);holdonen
2、d end %dy/dt-t for i=0:0.1:1for j=0:0.1:1T,Y=ode45( differential figure(3)gridonplot(T,Y(:,2);holdon,0 5,i j);,0 5,i j);,0 5,i j);endendY-X图像dx/dt-t 图像dy/dt-t 图像Mot- at.qoILlaar Blit.t,oxi-e 7 J.-it.-a. brixnhi.nu 金 1 inlE d. plo t s 尿旦 Pl曲2“次1 - 2IIIiIIIIi1 8 6 4 2 0 2 ao.o.Q aFigure 3匚叵冈il Edi t i* lni*rt X&ls Desktop IVindow Ulp3n a h | 怡 |%、? 遲尿* 具 id 口Wflte nev toolbar buttons; dat brushing 也 link&d plotsPlw viX