cellular automata
易水侠客
这个作者很懒,什么都没留下…
展开
-
Java and Cellular Automata
import java.awt.Color;import java.awt.GridLayout;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import java.awt.event.WindowAdapter;import java.awt.event.WindowEven...原创 2013-05-29 21:04:56 · 180 阅读 · 0 评论 -
C++ and Langton's ant
// ant.cpp#include <iostream>using namespace std;int main(void){ int N=5; int **G= new int*[N]; for(int i=0;i<N;i++) G[i] = new int[N]; for(int j=0;j<N;j++){ for(int k=0...原创 2013-05-29 21:26:59 · 360 阅读 · 0 评论 -
Matlab and nonlinear dynamic
clear all;close all;%mu=0.5;mu=2.6:3e-4:4;x=0.6*ones(1,200);%for n=1:200 % x(n+1)=mu*x(n)*(1-x(n));%end%plot(x(1,:),'k','markersize',10);%xlabel('n');%ylabel('x(n)');title('l...原创 2013-05-29 22:02:12 · 707 阅读 · 0 评论 -
The game of life
%Conway's life with GUIclfclear all%=============================================%build the GUI%define the plot buttonplotbutton=uicontrol('style','pushbutton',... 'string','Run'...原创 2013-05-29 22:25:37 · 199 阅读 · 0 评论 -
gas model
%CA driver%HPP-gasclear allclfnx=52; %must be divisible by 4ny=100;z=zeros(nx,ny);o=ones(nx,ny);sand = z ;sandNew = z;gnd = z ;diag1 = z;diag2 = z;and12 = z;or12 = z...原创 2013-05-29 22:41:00 · 208 阅读 · 0 评论