The rats program code is given and even if the person does


?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

796_RATS program.png

Figure: Population in a Simulated Easter Island Economy

801_RATS program1.png

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

Solution Preview :

Prepared by a verified Expert
MATLAB Programming: The rats program code is given and even if the person does
Reference No:- TGS01222405

Now Priced at $80 (50% Discount)

Recommended (93%)

Rated (4.5/5)

A

Anonymous user

2/19/2016 6:04:40 AM

The following assignment of Matlab which defines the program as shown below. For this one I merely need someone who is good at MATLAB and can translate a program on RATS to MATLAB. The assignment is to reproduce the attached through Matlab code. The "RATS" program code is specified and even if the person doesn’t know RATS, it is extremely alike so should be able to figure it out. Programme for Easter Island Simulation Figures were produced using the programme below. The programme is written for the econometric package RATS but a programme of this sort could be written for heaps of dissimilar kinds of software as well as Excel.