当前位置:网站首页>Matlab - 演化博弈论实现
Matlab - 演化博弈论实现
2022-06-10 21:18:00 【不明白??】
小白入门演化博弈论,演化博弈论的复制动态方程一些推导问题都已经搞明白。下面在学习如何使用matlab进行防止实验。
记录一下,第一次跟着B站视频敲的代码:视频来源
回头写一个如何推导复制动态方程的博客
动态微分方程函数
function dxdt = differential(t, x)
dxdt = [x(1)*(1-x(1))*(-2.3 - 2.8*x(2));x(2)*(1 - x(2))*(1.3 - 2 * x(1))];
end
绘图代码
clear
for i = 0.1 : 0.2 : 0.9
for j = 0.1 : 0.2 : 0.9
[T, Y] = ode45('differential', [0 20], [i j]);
figure(1)
grid on
plot(T, Y(:, 1), 'r*--', 'lineWidth', 1);
hold on;
plot(T, Y(:, 2), 'b--', 'lineWidth', 1);
hold on;
end
end
axis([0 20 -0.1 1.1]);
set(gca, 'XTick', [0:2:20], 'YTick', [-0.1:0.1:1.1])
xlabel('evolutionary steps');
ylabel('populations');
legend('数据拥有者', '数据消费者');
结果图

边栏推荐
- 【小程序】Vant-Weapp Radio单选框组件无法触发bind:Change事件
- PMP candidates, there are these places for PMP examination in Shenzhen in June 2022
- 数组 从指定长度位旋转数组
- SQL Server查询区分大小写
- JVM runtime data area
- If else is too easy to use? (understanding this article will further improve your logic)
- What about the popular state management library mobx?
- A number that appears only once in an array
- JS mobile terminal copy text to clipboard code
- 数组 两个数组的交集 II
猜你喜欢

GMPNN:Drug-drug interaction prediction with learnable size-adaptive molecular substructures.

GMPNN:Drug-drug interaction prediction with learnable size-adaptive molecular substructures.

C language - quick sorting in sorting

(十一)TableView

Kdd2022 | neural network compression of depth map based on antagonistic knowledge distillation

SQL第四练:字符串处理函数

C use s7 Net connected to Siemens s1200plc, C # directly connected to Siemens PLC

Visio to high quality pdf

Modify frontsortinglayer variable of spritemask

修改SpriteMask 的 frontSortingLayer 变量
随机推荐
(11) Tableview
Array intersection of two arrays II
【phpstorm】 No data sources are configured to run this SQL and provide advanced c
【Py】接口签名校验失败可能是由于ensure_ascii的问题
JVM运行时数据区
笔记(二)
Can I make up the exam if I fail the soft exam? Here comes the answer
磁盘序列号,磁盘ID,卷序列号的区别
【MySQL】常见数据类型总结
Latex error: file ‘xxx.sty‘ not found
KDD2022 | 基于对抗性知识蒸馏的深度图神经网络压缩
C语言-排序中的快速排序(简称快排)
ICML2022 | Sharp-MAML:锐度感知的模型无关元学习
《暗黑破坏神不朽》数据库资料站地址 暗黑不朽资料库网址
Only this is the most true reason why leaders promote you. The rest is nonsense!
ArrayList的扩容机制
Sum of two array numbers
Install MySQL on Linux system. Problems encountered in xshell
C语言qsort()函数的使用(详解)
Detailed explanation of Lora module wireless transceiver communication technology