?F?or this one I simply need someone who is good at MATLAB and can translate a program on RATS to MATLAB.
The assignment is to reproduce the attached with Matlab code.
The "RATS" program code is given and even if the person does not know RATS, it is very similar so should be able to figure it out.
?Appendix: Programme For Easter Island Simulation
Figures were produced using the programme below. The ptogramme is written for the econometric package RATS but a programme of this sort could be written for lots of different types of software including Excel.
Figure: Resources in a Simulated Easter Island Economy
Figure: Population in a Simulated Easter Island Economy
allocate 10000
set d = 0.075 set r = 0.075 set gamma = 2 set theta = 0.1
set s = 1
set n = 0.0001
set h = 0
do k = 2,10000
comp s(k) = s(k-1) + r(k)*s(k-1)*(1-s(k-1) ) - h(k-1) comp h(k) = gamma(k)*s(k-1)*n(k-1)
comp n(k) = (1-d(k))*n(k-1) + theta(k)*h(k)
end do k
graph 1
# s 1 500
graph 1
# n 1 500