Out of Bonds when I want to generate a graph In MATLAB
I habe a little problem with my code: 

X=[0, 2.5];

P(:,1)=0.1;

N=length(X);

for n=1:N

for t=1:10

P(n,t+1)=X(n)*P(n,t)*[1-P(n,t)];

end
end

plot(t,P)

The computer answer me : 

??? Attempted to access P(2,1); index out of bounds because
size(P)=[1,101].

Error in ==> test at 7
    P(n,t+1)=X(n)*P(n,t)*[1-P(n,t)];

I do not know how to solve it, but at final, I want to produce something similar of that : 
(picture link) : http://hpics.li/57b346a 

May be you can help me ! 

Thanks a lot ! 

Thomas
Out of Bonds when I want to generate a graph In MATLAB
===

I habe a little problem with my code: 

X=[0, 2.5];

P(:,1)=0.1;

N=length(X);

for n=1:N

for t=1:10

P(n,t+1)=X(n)*P(n,t)*[1-P(n,t)];

end
end

plot(t,P)

The computer answer me : 

??? Attempted to access P(2,1); index out of bounds because
size(P)=[1,101].

Error in ==> test at 7
    P(n,t+1)=X(n)*P(n,t)*[1-P(n,t)];

I do not know how to solve it, but at final, I want to produce something similar of that : 
(picture link) : http://hpics.li/57b346a 

May be you can help me ! 

Thanks a lot ! 

Thomas