"Nasser M. Abbasi" <nma@12000.org> wrote in message <jsnfsf$74e$1@speranza.aioe.org>...
> On 6/30/2012 1:06 PM, Sanaa wrote:
> > Hi,
> > I am having a problem in plotting the orbit of the equation
> >
> > x(t)=x_n + (tn)*ru*x_n*(1x_n), t/in [n,n+1), n0,1,2,3,...
> > using the code
> >
> > clear all; close all;
> > n = 50;
> > Nit = 10;
> > ru=1.5;
> > x_previous = ones(1,n);
> > for i = 1: Nit
> > time = linspace(i,(i+1),n);
> > x_next = x_previous+(time(i)i)*ru*x_previous.*(1x_previous);
> > x_previous = x_next;
> > plot(time,x_next,'linewidth',3)
> > end
> > fsize=15;
> > xlabel('t','Fontsize',fsize)
> > ylabel('x','Fontsize',fsize)
> > %axis([1 Nit 0 10]);
> >
> > but I don't get the expected graph! what went wrong please?
> > Thanks a lot for help.
> > Sanaa Moussa
> >
>
> Your (time(i)i) always zero. For all loops. Need
> to fix that part.
>
Yes, I have tried to fix it but still having the same problem because in the map the term (tn) appears explicitly. So, do u have any idea to fix this problem?
Thanks a lot in advance.
