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

📄 eco.m

📁 一个利用元胞自动机进行生态仿真的matlab程序
💻 M
字号:
% ECO : Main Program of ECODYNAMICA
% Simulation Tool for Ecological Phenomena
%
%	Fist Coded          5  March    1997
%	Last Modefied     17 May   1999
%
%    Copyright (c)
%    T. Suzudo JAERI-CAIL
%
%
% Note on 25 March, 1997
% The program "ecody" and the subprograms do not share any variables,
% so you can directly start the subprograms by typing, e.g., "runeco1"
% in the Matlab prompt.
%
% Note on 10 April, 1997
% In the Langton's context, the number of neighbour, N and the number of cell state are
% general. At the momemt N=3, K=2,3 and N=9, K=2 for 1 and 2 dimension lattice, 
% respectively are available.
%
% Note on 17 April,1997
% Rule generator for totalistic rules for 2 dimensional CA was added.
%
% Note on 25 April,1997
% For 1 dimensional CA, 5 and 7 neighbors, N are available, provided that K is 2.
% For 2 dimensional CA, 5 as well as 9 neighbors are available, provided that K is 2.
%
% Note on 1 May,1997
% For 1 dimensional CA, 9 and 27 neighbors, N are available, provided that K is 2.
% For 3 dimensional CA, 7 and 27 neighbors are available, provided that K is 2.
%
% Note on 6 May,1997
% Outer Totalistic Rules are available for 2-dimension, N=5,9 and K=2
%
% Note on 15 May,1997
% Outer Totalistic Rules are available for 1-dimension, N=3,5,7,9,27 and K=2
%                                              and for 3-dimension, N=7,27 and K=2
% Note on 11 September,1997
% Simple cataloged procedure became available 1-3 dimension CAs. See catalog.m
%
% Note on 12 March, 1998
% Movie is available only for 2-dimentional CA
%
% Note on 23 April, 1998
% mu-parameter is calculated for 2-dimensional outer-totalistic (5 neighbor only)
%
% Note on 28 December,1998
% 3-dimentional functionalities are discarded. 
% Symmetric rule entries were defined for 1-dimenstional 3-neighbor, 3-state-per-cell CAs
%
% Note on 17 May, 1999
% objective.m was discarded.
%

% Hierarchy of M-flies
%
% eco    --- runeco1 --- ecoloop1 --- disrule1
%            |                   |
%            |                   -- dispop
%            |
%            |
%            -- runeco2 --- ecoloop2
%            |                   |
%            |                   -- dispop
%            |
%            -- seteco
%            |
%            -- rulegen1 --- rgen123 -- uprule1
%            |                   |
%            |                   -- rgen133
%            |                   |
%            |                   -- rgen125  -- uprule1
%            |                   |
%            |                   -- rgen127  -- uprule1
%            |                   |
%            |                   -- rgen129  -- uprule1
%            |                   |
%            |                   -- rgen1227  -- uprule1
%            |
%            -- rulegen2 --- uprule2
%            |
%            -- history
%           

% Function
%    bin2dec  	transform binary to decimal
%    combi    	calculate combination
%	calcmu2		calculate mu-parameter for 2-dimensional CAs
%    decode
%	distot		display totalistic rule code
%	disout		display outer-totalistic rule code
%    dissym		display symmetric rule code
%	disrule		dsiplay rule code on the graph

% Necessary MAT-flies
%		popplot		GUI data for time-series data display
%		rule1		1 dimensional CA rules
%		rule2		2 dimensional CA rules
%		rule3		3 dimensional CA rules
%		stepfp		Setup parametes
%


% Clear the memory
labels = str2mat(...
    '1-dimension', ...
    '1-dim Rule Generator', ...
    '2-dimension', ...
    '2-dim Rule Generator', ...
    'Setup',...
    'Program history');

% Callbacks
callbacks = [ ...
    'runeco1       '
    'rulegen1      '
    'runeco2       '
    'rulegen2      '
    'seteco        '
    'history       '];

choices('ECODY', 'ecodynamica 1.1', labels, callbacks);

⌨️ 快捷键说明

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