[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


From: Marco Atzeri
Subject: Re:
Date: Sat, 24 Oct 2015 10:10:40 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0

On 24/10/2015 09:02, Jonathan Camilleri wrote:
I cannot understand what is wrong with my training code, I am following
online training at

Does this mean tutorials need an update or do I need to know anything?

your file:
xdot(1) = r*x(1)*(1 - x(1)/k - a*x(1) * x(2)/(1+b*x(1));

online example:
xdot(1) = r*x(1)*(1 - x(1)/k) - a*x(1)*x(2)/(1 + b*x(1));

as you see one closed parenthesis is missing.

The error message was clear (for me)
> xdot(1) = r*x(1)*(1 - x(1)/k - a*x(1)*x(2)/(1 + b*x(1));
parse error:

  syntax error

>>> xdot(1) = r*x(1)*(1 - x(1)/k - a*x(1)*x(2)/(1 + b*x(1));
There was a parse error due to wrong syntax in that row.
Of course the lack of a parenthesis is only recognized at the end of the line....

Inline images 1

Please avoid, you can use the command  "diary" to save your sessions

Jonathan Camilleri


reply via email to

[Prev in Thread] Current Thread [Next in Thread]