Advertisement
-TesseracT-

Untitled

Apr 2nd, 2020
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.57 KB | None | 0 0
  1. for t = 1:length(CO2Emissions)
  2.    
  3.     B1(t+1) = B1(1);
  4.     NPP = NPP0*(1 + beta*log(B1(t)/B_10));
  5.     B1_dot(t) = alpha_31*B3(t) + alpha_21*B2(t)- NPP + CO2Emissions(t);
  6.    
  7.     for tilde = 1:t
  8.             for i = 1:5
  9.                 inre_summa(i) = sum(A(i)*exp((-(t-tilde))/tau_init(i)*(1+k*sum(B1_dot(1:(t-1))))));
  10.             end
  11.             B1(t+1) = B1(t+1) + sum(inre_summa)*B1_dot(tilde);
  12.     end
  13.    
  14.     B2_dot = NPP-(alpha_23+alpha_21)*B2(t);
  15.     B2(t+1) = B2(t) + B2_dot;
  16.     B3_dot = alpha_23*B2(t)-alpha_31*B3(t);
  17.     B3(t+1) = B3(t)+ B3_dot;
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement