I want to get the graph of n and x(n) on x(n+1)=2.5*x(n)*(1-x(n)), where x(1)=0.9

I wrote

x(1)=0.9;

for n = 1:100,

x(n+1)=x(n)*(1-x(n))*2.5

plot (x(n),n)

end

and my plot is empty

Skip to content# MATLAB: How to get this graph

graph

I want to get the graph of n and x(n) on x(n+1)=2.5*x(n)*(1-x(n)), where x(1)=0.9

I wrote

x(1)=0.9;

for n = 1:100,

x(n+1)=x(n)*(1-x(n))*2.5

plot (x(n),n)

end

and my plot is empty

## Best Answer