function nLV = DynamicsWM_NetworkBFSatLV(Nr,rpLV,rint_SatLV,CSD,Si_SatLV,ExtTh,Nd,dtau,taurng,r0_est,rs_est,Si_est) %% Returns growth dynamics for communities of multiple species, based on the canonical pairwise model % This code is free to use for any purposes, provided any publications resulting from the use of this code reference the original code/author. % Author: Babak Momeni (bmomeni@gmail.com); August 2016 % The code is not guaranteed to be free of errors. Please notify the author of any bugs, and contribute any modifications or bug fixes back to the original author. Nc = length(rpLV); Nt = sum(Nd); tcLV = zeros(1,Nr*Nt); XLVc = zeros(Nc,Nr*Nt); cct = 0; for rnd = 1:Nr, XLV = CSD*rpLV'; % initial number of each cell type XLVlm = zeros(Nc,Nt); ctLV = 0; while (ctLV