clc; close all; clear all;

b=0.9; d=0.25;

nn=200;

t=[0:0.1:100];

for a=0:0.01:11

for n=1:nn

x(1)=0.4;

y(1)=2.9;

x(n+1)=x(n)+(d*((a*x(n))*(1-x(n))-((b*x(n)*y(n))/(x(n)+y(n)))));

y(n+1)=y(n)+(d*(((b*x(n)*y(n))/(x(n)+y(n)))-y(n)));

stem(y,x)

end

end

i have been trying to run this code in order to plot difference equation curves but this code isn't yielding any output. Can anyone suggest any other codes or point out my mistake?

## Best Answer