help-octave
[Top][All Lists]
Advanced

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

Re: The parse error on the "x"


From: marco atzeri
Subject: Re: The parse error on the "x"
Date: Sat, 02 Feb 2013 13:01:03 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2

On 2/2/2013 12:27 PM, Taban wrote:
Thanks,

All code is that in my script. if "first" works for you. Can you write here
code which executed successfully. If it is different from what i wrote, i
will edit my code, otherwise i will search something else. After i will add
[SOLVED] to my topic.

Taban,
try this way:

function y = f (x,t)
y = 5-2*x;
endfunction
first = 2;
t = linspace(0,20,100);
s = lsode("f",first,t);
plot(t,s,"r-")

it works fine on my 3.6.x on cygwin

regards
Marco


reply via email to

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