首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > for伯克利e170类仿真项目

for伯克利e170类仿真项目

  • 资源大小:7.56 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: 仿真 for 项目 伯克利

资 源 简 介

function hw9 %E170 Homework 9 Group Project %The following model uses six matices, N1OLD, N2OLD, N3OLD, N1NEW, N2NEW %and N3NEW to hold the population information. The Old matrices hold the population density %until a complete New matrix is calculated %Flow Chart %Step1 Zero OLD and NEW matrices. %Step2 Set initial conditions and boundary conditions. %Step3 Calculate number of new individuals, place them into NEW arrays %Step4 Use Gaussian model to distribute new individuals in NEW matrices %Step5 Add the NEW matrices to the OLD matrices and zero the New matrices %Step6 Take population information for selected points. %Step7 Update time. (End of time loop)(Return to Step3) %Variables TMAX=10; %TMAX is the maximum time (sec) M=1000; %M is the number of time increments DT=TMAX/M; %DT is the time increment (sec) N=19; %NxN is the cell matrix DX=10/N; %DX is the length of the side of a cell N10=
VIP VIP
0.208829s