资 源 简 介
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=