The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Logistic equation with delay
Replies: 8   Last Post: Mar 24, 2014 3:42 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 4
Registered: 3/20/14
Re: Logistic equation with delay
Posted: Mar 21, 2014 4:43 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

This is what I have so far:

delta = 1;

for i=2:200
d=(delta * t(i-1));
N1(i+1) = N1(i) + h*N1(i)*(a-b*N1(i-d));
plot(t,N1(:,1)), grid on;

But I'm getting weird plots like this:

Any ideas what I'm doing wrong?

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.