PREY0 = 100 % Initial Condition of PREY
PRED0 = 10 % Initial Condition of PREDATOR
PREYmax = 1000 % Maximum Limit of PREY Population
PREYmin = 2 % Minimum Limit of PREY Population
PREDmax = 100 % Maximum Limit of PREDATOR Population
PREDmin = 2 % Minimum Limit of PREDATOR Population
a = 0.1275 % Population Growth Rate of PREY per DAY
b = 0.5 % Consumption Rate of PREDATOR per DAY
c = 0.02 % Death Rate of PREDATOR per day
d = 0.05 % Population Growth Rate of PREDATOR per DAY
sim('predator_n_prey.slx')
subplot(311), plot(time, PRED), grid on, xlabel('time [days]'), ylabel('PREDATOR')
subplot(312), plot(time, PREY), grid on, xlabel('time [days]'), ylabel('PREY')
subplot(313), plot(PREY, PRED), grid on, xlabel('PREY'), ylabel('PREDATOR')