Reply by Jeff Brower December 21, 20112011-12-21
Vassily-

> I'm trying to work through the parameter estimation workshop at
> "ftp://ftp.colorado.edu/cuboulder/courses/chen5128/ClassWorkshops/Class26Workshop.pdf"
>
> It goes well until the program cites the following
>
> function dy = logistic(t,y,flag,a,b1,b2)
> dy = b1/b2 * (y – a) * (b2 – (y – a));
>
> as containing errors, namely the subtraction signs between y and a in the second line.
> Is there a problem with subtraction signs in Matlab?

Andre's has probably got it. When I reply to your e-mail in text form, those subtraction signs are not actually an
asterisk "dash". See above.

Just delete and retype them.

-Jeff
Reply by December 5, 20112011-12-05
Hi Vassily Shvets,

I believe you are copying and pasting from the pdf file. If you are doing
that, it's common to include spaces and characters that matlab can't
recognize. Try to type by hand the equation without spaces between the *
and the parentheses.

Obs: This piece of code is a function and you just have to save as a .m
file and after that use it in the command window, ok?

All the best,

--
AndrTahim
Reply by Vassily Shvets December 5, 20112011-12-05
Hello,
I'm trying to work through the parameter estimation workshop at "ftp://ftp.colorado.edu/cuboulder/courses/chen5128/ClassWorkshops/Class26Workshop.pdf"

It goes well until the program cites the following

function dy = logistic(t,y,flag,a,b1,b2)
dy = b1/b2 * (y – a) * (b2 – (y – a));

as containing errors, namely the subtraction signs between y and a in the second line.
Is there a problem with subtraction signs in Matlab?
thanks,
S