1. 首页
  2. 移动开发
  3. 其他
  4. 元胞自动机matlab源程序模拟气体交换碰撞

元胞自动机matlab源程序模拟气体交换碰撞

上传者: 2020-08-16 09:03:51上传 NONE文件 3.16KB 热度 32次
部分代码: %CA driver %HPP-gas clear all clf nx=52; ny=100; z=zeros(nx,ny); o=ones(nx,ny); sand=z; sandNew=z; gnd=z; diag1=z; diag2=z; and12=z; or12=z; sums=z; orsum=z; gnd(1:nx,ny-3)=1 ; % right ground line gnd(1:nx,3)=1 ; % left ground line gnd(nx/4:nx/2-2,ny/2)=1; %the hole line gnd(nx/2+2:n
下载地址
用户评论
码姐姐匿名网友 2020-08-16 09:03:51

很不错的源代码,入门很好