资源简介
用matlab写成的元胞自动机,gui界面,yb是主函数,用鼠标绘制初始状态。live和born可以选择0到8,并且可以多选,所以包含了元胞自动机的全部规则。run,stop功能。

代码片段和文件信息
live=[0 0 1 0 0 0 0 0 0];
born=[0 0 0 1 0 0 0 0 0];
plotbutton=uicontrol(‘style‘‘pushbutton‘‘string‘‘Run‘‘fontsize‘12...
‘position‘[100105020]‘callback‘‘run=1;‘);
erasebutton=uicontrol(‘style‘‘pushbutton‘‘string‘‘Stop‘‘fontsize‘12...
‘position‘[200105020]‘callback‘‘freeze=1;‘);
quitbutton=uicontrol(‘style‘‘pushbutton‘‘string‘‘Quit‘‘fontsize‘12...
‘position‘[300105020]‘callback‘‘stop=1;close;‘);
number=uicontrol(‘style‘‘text‘‘string‘‘1‘‘fontsize‘12...
‘position‘[20105020]);
box1=uicontrol(‘style‘‘checkbox‘‘string‘‘0‘‘fontsize‘12...
‘position‘[203503535]‘callback‘‘live(1)=~live(1)‘);
box2=uicontrol(‘style‘‘checkbox‘‘string‘‘1‘‘fontsize‘12...
‘position‘[203203535]‘callback‘‘live(2)=~live(2)‘);
box3=uicontrol(‘style‘‘checkbox‘‘string‘‘2‘‘fontsize‘12...
‘position‘[202903535]‘callback‘‘live(3)=~live(3)‘‘value‘1);
box4=uicontrol(‘style‘‘checkbox‘‘string‘‘3‘‘fontsize‘12...
‘position‘[202603535]‘callback‘‘live(4)=~live(4)‘);
box5=uicontrol(‘style‘‘checkbox‘‘string‘‘4‘‘fontsize‘12...
‘position‘[202303535]‘callback‘‘live(5)=~live(5)‘);
box6=uicontrol(‘style‘‘checkbox‘‘string‘‘5‘‘fontsize‘12...
‘position‘[202003535]‘callback‘‘live(6)=~live(6)‘);
box7=uicontrol(‘style‘‘checkbox‘‘string‘‘6‘‘fontsize‘12...
‘position‘[201703535]‘callback‘‘live(7)=~live(7)‘);
box8=uicontrol(‘style‘‘checkbox‘‘string‘‘7‘‘fontsize‘12...
‘position‘[201403535]‘callback‘‘live(8)=~live(8)‘);
box9=uicontrol(‘style‘‘checkbox‘‘string‘‘8‘‘fontsize‘12...
‘position‘[201103535]‘callback‘‘live(9)=~live(9)‘);
box10=uicontrol(‘style‘‘checkbox‘‘string‘‘0‘‘fontsize‘12...
‘position‘[603503535]‘callback‘‘born(1)=~born(1)‘);
bo11=uicontrol(‘style‘‘checkbox‘‘string‘‘1‘‘fontsize‘12...
‘position‘[603203535]‘callback‘‘born(2)=~born(2)‘);
box12=uicontrol(‘style‘‘checkbox‘‘string‘‘2‘‘fontsize‘12...
‘position‘[602903535]‘callback‘‘born(3)=~born(3)‘);
box13=uicontrol(‘style‘‘checkbox‘‘string‘‘3‘‘fontsize‘12...
‘position‘[602603535]‘callback‘‘born(4)=~born(4)‘‘value‘1);
box14=uicontrol(‘style‘‘checkbox‘‘string‘‘4‘‘fontsize‘12...
‘position‘[602303535]‘callback‘‘born(5)=~born(5)‘);
box15=uicontrol(‘style‘‘checkbox‘‘string‘‘5‘‘fontsize‘12...
‘position‘[602003535]‘callback‘‘born(6)=~born(6)‘);
box16=uicontrol(‘style‘‘checkbox‘‘string‘‘6‘‘fontsize‘12...
‘position‘[601703535]‘callback‘‘born(7)=~born(7)‘);
box17=uicontrol(‘style‘‘checkbox‘‘string‘‘7‘‘fontsize‘12...
‘position‘[601403535]‘callback‘‘born(8)=~born(8)‘);
box18=uicontrol(‘style‘‘checkbox‘‘string‘‘8‘‘fontsize‘12...
‘position‘[601103535]‘callback‘‘born(9)=~born(9)‘);
text1=uicontrol(‘style‘‘text‘‘string‘‘live‘‘fontsize‘12...
‘position‘[203805020]);
t
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 44 2016-10-03 23:29 yb.m
文件 4429 2018-03-25 21:10 mm.m
文件 2866 2018-03-25 21:10 tmouse.m
----------- --------- ---------- ----- ----
7339 3
相关资源
- matlab_OFDM调制解调(来自剑桥大学)
- Matlab路面裂缝识别69319
- 高灵敏度GPS接收机MATLAB仿真,附捕获
- 基于MATLAB的质点弹道计算与外弹道优
- 阵列天线的matlab仿真
- MATLAB 经典程序源代码大全
- MATLAB小波软阈值去噪代码33473
- 天线阵的波束形成在MATLAB仿真程序及
- 非线性SVM算法-matlab实现
- 《MATLAB 智能算法超级学习手册》-程序
- 组合导航matlab程序
- 读取txt文件内容matlab代码实现
- Matlab实现基于相关的模板匹配程序
- matlab优化工具箱讲解
- 基于MATLAB的快速傅里叶变换
- 光纤传输中的分布傅立叶算法matlab实
- 基于matlab的图像处理源程序
- matlab 椭圆拟合程序
- 算术编码解码matlab源代码
- optical_flow 光流法 matlab 实现程序
- 引导图像滤波器 Matlab实现
- 分形几何中一些经典图形的Matlab画法
- OFDM系统MATLAB仿真代码
- SVM工具箱(matlab中运行)
- 图像小波变换MatLab源代码
- LU分解的MATLAB实现
- 冈萨雷斯数字图像处理matlab版(第三
- 替代数据法的matlab程序
- 用matlab实现的多站定位系统性能仿真
- 通过不同方法进行粗糙集属性约简m
评论
共有 条评论