⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 distot.m

📁 一个利用元胞自动机进行生态仿真的matlab程序
💻 M
字号:
function distot(code,lnei)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% DISTOT
% Display totalistic rule code
% This function-M file is called by RGEN***
%
%	Fist Coded			19  August    1997
%	Last Modefied		19  August    1997
%
%	Copyright (c)
%	T. Suzudo JAERI-CAIL
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% code	: rule-code defined in the program
% lnei	: number of neighbors
fig11=figure(11);
dy=0.05;
scode=bin2dec(code(1:(lnei+1)/2));
x=0;
y=4*dy;
uicontrol(fig11,'Style','text',...
	'String',['s-code: ' num2str(scode)],...
	'Units','normalized',...
	'position',[x,y,0.5,dy]);
lcode=bin2dec(code((lnei+1)/2+1:lnei+1));
x=0.5;
uicontrol(fig11,'Style','text',...
	'String',['l-code: ' num2str(lcode)],...
	'Units','normalized',...
	'position',[x,y,0.5,dy]);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -